Function at 0x52a2a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a6006
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x50]
mov eax, dword [eax + 0x7c]
xor ebp, ebp
cmp eax, ebp
jne 0x52a627
cmp dword [edi + 0x34], ebp
je 0x52a627
cmp dword [edi + 0x2c], ebp
je 0x52a627
mov dword [esp + 0x34], 0xff00ff
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x24]
mov byte [esp + 0xa0], 1
call fcn.0052a9c0
lea eax, [esp + 0x14]
call fcn.0052a9c0
mov eax, dword [edi + 0x50]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00537390
mov edx, dword [edi + 0x50]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00537a80
lea esi, [esp + 0x38]
call fcn.0052c320
lea esi, [esp + 0x60]
mov byte [esp + 0xa0], 2
call fcn.0052c320
mov byte [esp + 0xa0], 3
mov eax, dword [edi + 0x50]
lea esi, [esp + 0x38]
call fcn.00537d70
mov eax, dword [edi + 0x50]
lea esi, [esp + 0x60]
call fcn.00537e90
mov edx, dword [esp + 0x54]
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x54]
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
call eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x70]
push eax
call edx
mov cl, 0xff
mov dword [esp + 0x88], ebp
mov byte [esp + 0x8c], cl
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov byte [esp + 0xa0], 4
mov eax, dword [esp + 0x34]
lea esi, [esp + 0x88]
call fcn.0052cd80
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
mov edx, esi
push edx
lea edx, [esp + 0x28]
push edx
call eax
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x14]
push eax
call edx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebp
jne 0x52a44b
xor ecx, ecx
jmp 0x52a452
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jge 0x52a4fa
cmp eax, ebp
je 0x52a469
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x52a476
call fcn.00578ff3
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp dword [eax + ebx*4], ebp
je 0x52a4f2
cmp eax, ebp
je 0x52a48a
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x52a497
call fcn.00578ff3
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov esi, dword [eax + ebx*4]
cmp esi, ebp
je 0x52a4d1
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x52a4af
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x52a4c0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
push esi
call fcn.00578327
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebp
je 0x52a4de
sub edx, eax
sar edx, 2
cmp ebx, edx
jb 0x52a4e7
call fcn.00578ff3
mov eax, dword [esp + 0x28]
mov dword [eax + ebx*4], ebp
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add ebx, 1
jmp 0x52a443
lea eax, [esp + 0x24]
call fcn.0052a9c0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
xor ebx, ebx
lea ecx, [ecx]
cmp eax, ebp
jne 0x52a518
xor ecx, ecx
jmp 0x52a51f
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jge 0x52a5c7
cmp eax, ebp
je 0x52a536
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x52a543
call fcn.00578ff3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp dword [eax + ebx*4], ebp
je 0x52a5bf
cmp eax, ebp
je 0x52a557
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x52a564
call fcn.00578ff3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + ebx*4]
cmp esi, ebp
je 0x52a59e
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x52a57c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x52a58d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
push esi
call fcn.00578327
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebp
je 0x52a5ab
sub edx, eax
sar edx, 2
cmp ebx, edx
jb 0x52a5b4
call fcn.00578ff3
mov eax, dword [esp + 0x18]
mov dword [eax + ebx*4], ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ebx, 1
jmp 0x52a510
lea eax, [esp + 0x14]
call fcn.0052a9c0
lea esi, [esp + 0x88]
call fcn.0052cd50
lea esi, [esp + 0x60]
call fcn.0052c3d0
lea esi, [esp + 0x38]
call fcn.0052c3d0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x52a5ff
push eax
call fcn.00578327
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
je 0x52a627
push eax
call fcn.00578327
add esp, 4
mov eax, dword [edi + 0x50]
cmp dword [eax + 0x7c], 1
jne 0x52a912
lea esi, [esp + 0x38]
call fcn.0052c320
lea esi, [esp + 0x60]
mov dword [esp + 0xa0], 5
call fcn.0052c320
mov byte [esp + 0xa0], 6
mov eax, dword [edi + 0x50]
mov ecx, dword [eax + 0xd4]
mov edx, dword [eax + 0xd0]
push ecx
mov ecx, dword [eax + 0xcc]
push edx
mov edx, dword [eax + 0xc8]
push ecx
mov ecx, dword [eax + 0xc4]
push edx
mov edx, dword [eax + 0xc0]
push ecx
mov ecx, dword [eax + 0xbc]
mov eax, dword [eax + 0xb8]
push edx
push ecx
lea esi, [esp + 0x54]
call fcn.0052c6a0
mov eax, dword [edi + 0x50]
mov edx, dword [eax + 0xfc]
mov ecx, dword [eax + 0xf8]
push edx
mov edx, dword [eax + 0xf4]
push ecx
mov ecx, dword [eax + 0xf0]
push edx
mov edx, dword [eax + 0xec]
push ecx
mov ecx, dword [eax + 0xe8]
push edx
mov edx, dword [eax + 0xe4]
mov eax, dword [eax + 0xe0]
push ecx
push edx
lea esi, [esp + 0x7c]
call fcn.0052c6a0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x14]
mov byte [esp + 0xa0], 7
call fcn.0052a9c0
mov ecx, dword [edi + 0x50]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00537a80
cmp dword [edi + 0x3c], ebp
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
je 0x52a78b
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x12c]
lea eax, [esp + 0x14]
push eax
call edx
mov edx, dword [esp + 0x48]
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
push esi
push ebx
push ebp
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push edx
call eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x7c]
mov edx, dword [edx + 0x118]
push eax
mov eax, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
call edx
cmp dword [edi + 0x40], 0
je 0x52a801
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x12c]
lea edx, [esp + 0x14]
push edx
call eax
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0x40]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
push esi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
call edx
mov edx, dword [esp + 0x7c]
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x7c]
mov eax, dword [eax + 0x118]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
call eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
xor edi, edi
jmp 0x52a810
test eax, eax
jne 0x52a818
xor ecx, ecx
jmp 0x52a81f
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jge 0x52a8d8
test eax, eax
je 0x52a836
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x52a843
call fcn.00578ff3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp dword [eax + edi*4], 0
je 0x52a8d0
test eax, eax
je 0x52a85c
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x52a869
call fcn.00578ff3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x52a8ab
mov eax, dword [esi + 8]
test eax, eax
je 0x52a885
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x52a89a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
push esi
call fcn.00578327
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x52a8b8
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x52a8c1
call fcn.00578ff3
mov eax, dword [esp + 0x18]
mov dword [eax + edi*4], 0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edi, 1
jmp 0x52a810
lea eax, [esp + 0x14]
call fcn.0052a9c0
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x52a8f4
push eax
call fcn.00578327
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea esi, [esp + 0x60]
call fcn.0052c3d0
lea esi, [esp + 0x38]
call fcn.0052c3d0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret