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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5900ab
mov eax, dword fs:[0]
push eax
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 2
push 1
mov dword [esp + 0x48], 0xa
sete byte [esp + 0x1e]
call fcn.00523680
push 2
mov ecx, edi
call fcn.00523680
mov esi, dword [edi + 0xac]
cmp dword [edi + 0xa8], esi
lea ebp, [edi + 0xa4]
jbe 0x52a0bf
call fcn.005532de
mov ebx, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jbe 0x52a0cc
call fcn.005532de
push esi
push ebp
push ebx
push ebp
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.00521d40
mov ecx, edi
call fcn.00526670
mov ecx, dword [0x5ce6d8]
mov esi, dword [edi + 0x38]
push 0x59c948
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52a1e6
push esi
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0x28], esi
je 0x52a1e6
push 0x86
lea edx, [esp + 0xa2]
push 0
push edx
call fcn.00552500
add esp, 0xc
lea eax, [esp + 0x9e]
push eax
push esi
mov ecx, ebp
call fcn.00524b10
mov eax, dword [ebp + 4]
test eax, eax
mov dword [esp + 0x1c], esi
je 0x52a15b
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x52a160
call fcn.005532de
mov edx, dword [0x5ce6d8]
mov esi, dword [ebp + 4]
mov ebx, dword [edi + 0x38]
push str.xunyou_get_game_catalogs
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52a1df
push ebx
lea ecx, [esp + 0x20]
push ecx
push esi
call eax
test eax, eax
jne 0x52a1df
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x28]
jae 0x52a1e6
mov ebx, dword [ebp + 8]
cmp dword [ebp + 4], ebx
jbe 0x52a1a0
call fcn.005532de
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x52a1ad
call fcn.005532de
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
call fcn.0051f660
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ebx
push ebp
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebp
call fcn.00521d40
jmp 0x52a1e6
mov ecx, ebp
call fcn.00521da0
xor esi, esi
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], esi
mov eax, dword [ebp + 4]
test eax, eax
je 0x52a4cb
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x52a4cb
mov eax, dword [ebp + 4]
test eax, eax
je 0x52a23f
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x52a244
call fcn.005532de
mov ebx, dword [ebp + 4]
add ebx, dword [esp + 0x40]
mov esi, dword [ebx]
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x52a4b5
cmp byte [esp + 0x1a], 0
je 0x52a2ca
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x27]
push eax
lea ecx, [edi + 0xcc]
mov byte [esp + 0x2b], 0
call fcn.00527ca0
mov ecx, eax
call fcn.004140f0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 0xf0]
add ebx, 6
call fcn.00415aa0
mov edx, ebx
lea esi, [edx + 1]
lea ebx, [ebx]
mov cl, byte [edx]
add edx, 1
test cl, cl
jne 0x52a2a0
sub edx, esi
push edx
push ebx
mov ecx, eax
call fcn.0040c1c0
add dword [esp + 0x24], 1
add dword [esp + 0x40], 0x86
mov esi, dword [esp + 0x24]
jmp 0x52a1f5
test esi, esi
mov eax, 0x33
jne 0x52a2e3
xor edx, edx
mov dh, byte [ebx + 5]
mov dl, byte [ebx + 4]
mov dword [esp + 0x1c], edx
mov esi, edx
jmp 0x52a2e8
mov eax, 0x49
cmp byte [esp + 0x1b], 0
jne 0x52a2f8
mov dword [esp + 0x38], esi
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x80]
add ebx, 6
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x60], 0x1d
call fcn.00522280
add esp, 4
cmp dword [eax + 0x18], 8
mov dword [esp + 0x130], 0
jb 0x52a347
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
jmp 0x52a34e
add eax, 4
mov dword [esp + 0x28], eax
mov edx, dword [edi + 0x2c]
mov ebx, dword [edi + 4]
sub esi, 1
neg esi
sbb esi, esi
push str.uiview_create_control_by_example
and esi, 0xfffffff7
push edx
add esi, 0x6e
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52a38c
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x28]
push edx
add ecx, 0x7d0
push ecx
push esi
push ebx
call eax
jmp 0x52a391
mov eax, 5
test eax, eax
sete bl
cmp dword [esp + 0x98], 8
mov dword [esp + 0x130], 0xffffffff
jb 0x52a3bb
mov edx, dword [esp + 0x84]
push edx
call fcn.0055215c
add esp, 4
test bl, bl
je 0x52a4b5
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esi, 0x5dc
lea eax, [esi + 0x1f4]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x50], ecx
lea ebx, [edi + 0x98]
push eax
mov ecx, ebx
mov dword [esp + 0x30], 1
call fcn.00528910
mov ecx, eax
call fcn.004615c0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x58]
add ecx, 0xb
add eax, 5
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x70], eax
add eax, 1
add ecx, 8
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x74], ecx
add ecx, 6
test eax, eax
mov dword [esp + 0x7c], ecx
je 0x52a451
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
cmp dword [esp + 0x24], eax
jae 0x52a4b5
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 4]
push str.uiview_create_control_by_example
push eax
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52a4b5
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x70]
push ecx
push 0
push esi
push 0x64
push edx
call eax
test eax, eax
jne 0x52a4b5
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], 2
call fcn.00528910
mov ecx, eax
call fcn.004615c0
add dword [esp + 0x24], 1
add dword [esp + 0x40], 0x86
mov esi, dword [esp + 0x24]
jmp 0x52a1f5
cmp byte [esp + 0x1a], 0
jne 0x52a4ec
mov eax, dword [esp + 0x38]
lea ecx, [eax - 1]
mov dword [edi + 0x8c], ecx
push eax
mov ecx, edi
call fcn.00528a40
jmp 0x52a59d
mov eax, dword [esp + 0x44]
mov edx, dword [edi + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [edi + 4]
mov dword [esp + 0x60], eax
push str.uiview_create_control_by_example
add eax, 0x33
push edx
mov dword [edi + 0x8c], 0x3e8
mov dword [esp + 0x6c], 7
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x1d
call ebx
test eax, eax
je 0x52a59d
lea ecx, [esp + 0x60]
push ecx
push 0x59ca90
push 0x7d0
push 0x65
push esi
call eax
test eax, eax
jne 0x52a59d
mov edx, dword [edi + 0x8c]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x98]
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], 0x7d0
mov dword [esp + 0x3c], edx
call fcn.00528910
mov ecx, eax
call fcn.004615c0
mov esi, dword [edi + 4]
call fcn.004a1350
test eax, eax
je 0x52a59d
push str.uiview_set_selected
push eax
call ebx
test eax, eax
je 0x52a59d
push 1
push 0x7d0
push esi
call eax
mov ecx, edi
call fcn.005291f0
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret