Function at 0x528a40
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x590002
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5cca0c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, dword [esp + 0x148]
mov ebp, ecx
mov eax, dword [ebp + 0x8c]
cmp eax, edi
je 0x5291bb
push eax
push 1
call fcn.00521060
push edi
push 1
mov ecx, ebp
mov esi, eax
call fcn.00521060
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x24], eax
je 0x528b04
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
call fcn.004a1350
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x528adb
push str.uiview_set_selected
push eax
call edi
cmp eax, ebx
je 0x528adb
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
call eax
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], edx
call fcn.004a1350
cmp eax, ebx
je 0x528b0a
push str.uiview_show_window_part_by_index
push eax
call edi
cmp eax, ebx
je 0x528b0a
mov ecx, dword [esp + 0x14]
push ebx
push 0xa
push esi
push ecx
call eax
jmp 0x528b0a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esp + 0x24], ebx
je 0x528b56
mov esi, dword [ebp + 4]
call fcn.004a1350
cmp eax, ebx
je 0x528b32
push str.uiview_set_selected
push eax
call edi
cmp eax, ebx
je 0x528b32
mov edx, dword [esp + 0x24]
push 1
push edx
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
cmp eax, ebx
je 0x528b56
push str.uiview_show_window_part_by_index
push eax
call edi
cmp eax, ebx
je 0x528b56
mov ecx, dword [esp + 0x24]
push 5
push 0xa
push ecx
push esi
call eax
mov eax, dword [esp + 0x148]
cmp eax, 1
mov dword [ebp + 0x8c], eax
sete al
test al, al
sete byte [esp + 0x1b]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov edx, dword [0x5ce6d8]
mov esi, dword [ebp + 0x38]
push str.xunyou_get_game_max_count_by_type
push edx
mov dword [esp + 0x148], ebx
call edi
cmp eax, ebx
je 0x5291aa
push esi
call eax
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x2c], esi
jbe 0x5291aa
push 0xffffffffffffffff
push 0x59648b
lea eax, [esp + 0xbc]
push 0x80
push eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
call fcn.0055501f
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.00524dd0
mov edx, dword [ebp + 0x8c]
push edx
lea eax, [esp + 0xb0]
push eax
mov ecx, ebp
call fcn.0051dab0
cmp byte [esp + 0x1b], 0
je 0x52907b
lea ecx, [esp + 0x40]
call fcn.00441730
mov bl, byte [esp + 0xb0]
cmp bl, byte [esp + 0xb1]
mov byte [esp + 0x140], 1
mov byte [esp + 0x24], bl
jg 0x528f2d
jmp 0x528c44
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
test esi, esi
je 0x528c69
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x78787879
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x528c72
call fcn.005532de
mov esi, dword [esp + 0x34]
mov edx, dword [0x5ce6d8]
mov ebx, dword [ebp + 0x38]
push str.xunyou_get_games_by_type
push edx
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x528f09
mov esi, dword [esp + 0x24]
push esi
push esi
push 0
push ebx
lea ecx, [esp + 0x24]
push ecx
push edi
call eax
test eax, eax
jne 0x528f09
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x2c], esp
xor edi, edi
lea edx, [esp + 0x5c]
push esi
push edx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
call fcn.00525100
add esp, 0x18
mov cl, byte [eax]
add eax, 4
mov byte [esp + 0x78], cl
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x144], 2
call fcn.0045c610
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x98]
lea ecx, [ebp + 0xcc]
push eax
mov byte [esp + 0x148], 3
call fcn.00526780
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x528d1e
push eax
call fcn.0055215c
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov byte [esp + 0x140], 1
je 0x528d4c
push eax
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
jbe 0x528f09
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x34]
test esi, esi
je 0x528d87
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x528d90
call fcn.005532de
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
add esi, ecx
push esi
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x48]
call fcn.00456560
mov edi, eax
lea eax, [esp + 0x40]
cmp eax, dword [edi]
je 0x528dbb
call fcn.005532de
cmp ebx, dword [edi + 4]
jne 0x528eec
push esi
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x48]
call fcn.0045b860
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [ebp + 0xcc]
call fcn.00527ca0
mov ecx, eax
call fcn.004140f0
push esi
lea ecx, [ebp + 0xf0]
lea edi, [esi + 8]
call fcn.00415aa0
mov edx, edi
mov ecx, eax
lea ebx, [edx + 1]
mov al, byte [edx]
add edx, 1
test al, al
jne 0x528e04
sub edx, ebx
push edx
push edi
call fcn.0040c1c0
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x528e2e
push esi
lea eax, [esp + 0x6c]
push eax
lea ecx, [ebp + 0xb4]
call fcn.0045b860
push 0x2d
push edi
call fcn.005552f0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], 0
jne 0x528e9f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x528e53
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.0040c1c0
push esi
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0xe4]
mov byte [esp + 0x148], 4
call fcn.00528450
mov ecx, eax
call fcn.004140f0
cmp dword [esp + 0x64], 0x10
mov byte [esp + 0x140], 1
jb 0x528eec
mov edx, dword [esp + 0x50]
push edx
jmp 0x528ee4
cmp edi, eax
je 0x528eb0
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.0040c1c0
push esi
lea eax, [esp + 0x50]
push eax
lea ecx, [ebp + 0xe4]
mov byte [esp + 0x148], 5
call fcn.00528450
mov ecx, eax
call fcn.004140f0
cmp dword [esp + 0x64], 0x10
mov byte [esp + 0x140], 1
jb 0x528eec
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0055215c
add esp, 4
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x88
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jb 0x528d62
mov al, byte [esp + 0x24]
add al, 1
cmp al, byte [esp + 0xb1]
mov byte [esp + 0x24], al
jle 0x528c40
mov bl, byte [esp + 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp bl, byte [esp + 0xb1]
mov esi, 0x2d
mov byte [ebp + 0x90], 0
jg 0x529013
movsx edx, bl
mov dword [esp + 0x14], edx
mov edi, 0x9c4
jmp 0x528f58
mov esi, dword [esp + 0x2c]
movsx ax, bl
push eax
call fcn.00557956
mov word [esp + 0x20], ax
xor eax, eax
mov word [esp + 0x22], ax
mov dword [esp + 0x6c], eax
lea eax, [esi + 0x52]
add esp, 4
cmp byte [ebp + 0x90], 0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 0x2e
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], eax
jne 0x528f9b
mov byte [ebp + 0x90], bl
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebp + 4]
push str.uiview_create_control_by_example
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x528ff5
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x20]
push ecx
push edi
push 0x66
push esi
call eax
test eax, eax
jne 0x528ff5
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [ebp + 0x98]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], 4
call fcn.00528910
mov ecx, eax
call fcn.004615c0
add dword [esp + 0x14], 1
add bl, 1
add edi, 1
cmp bl, byte [esp + 0xb1]
jle 0x528f54
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [ebp + 0x90]
push edx
push 4
mov ecx, ebp
call fcn.00521060
mov ebp, dword [ebp + 4]
mov esi, eax
call fcn.004a1350
test eax, eax
je 0x529044
push str.uiview_set_selected
push eax
call edi
test eax, eax
je 0x529044
push 1
push esi
push ebp
call eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x44]
push ecx
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x154], 0
call fcn.0043cdb0
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0055215c
add esp, 4
jmp 0x5291a8
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0x8c]
push ebx
lea ecx, [esp + 0x34]
mov byte [ebp + 0x90], 0
mov dword [esp + 0x30], edx
call fcn.0051bf90
mov dword [esp + 0x14], eax
mov eax, dword [0x5ce6d8]
push str.xunyou_get_games_by_type
push eax
call edi
cmp eax, ebx
je 0x5291aa
mov ecx, dword [esp + 0xb1]
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push esi
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
push ecx
call eax
cmp eax, ebx
jne 0x5291aa
xor edi, edi
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
jbe 0x5291aa
mov byte [esp + 0x1b], 0
mov dword [esp + 0x14], ebx
jmp 0x529102
xor ebx, ebx
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x529125
mov ecx, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x78787879
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x52912e
call fcn.005532de
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add esi, edx
push esi
lea eax, [esp + 0x1f]
push eax
lea ecx, [ebp + 0xcc]
call fcn.00527ca0
mov ecx, eax
call fcn.004140f0
push esi
lea ecx, [ebp + 0xf0]
lea edi, [esi + 8]
call fcn.00415aa0
mov edx, edi
lea ecx, [edx + 1]
mov bl, byte [edx]
add edx, 1
test bl, bl
jne 0x529160
sub edx, ecx
push edx
push edi
mov ecx, eax
call fcn.0040c1c0
cmp dword [esi + 4], 0
je 0x52918b
push esi
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [ebp + 0xb4]
call fcn.0045b860
mov edi, dword [esp + 0x20]
add dword [esp + 0x14], 0x88
add edi, 1
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
jb 0x529100
xor ebx, ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x5291bb
push eax
call fcn.0055215c
add esp, 4
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00552d63
add esp, 0x130
ret 4