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

Disassembly:
xor ebx, ebx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x1c]
and al, 0x1c
cmp eax, dword [ecx + 0xc]
jg 0x52fc57
mov ebp, dword [ecx]
mov ecx, dword [edi + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x78]
sub ebp, ecx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x52fa81
jmp 0x52f589
xor ebx, ebx
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x4c], ecx
push 0x5ea618
lea ecx, [esp + 0x50]
mov dword [esp + 0xf4], ebx
mov dword [esp + 0x4c], 0x64
call 0x5ea895
lea edx, [esp + 0x14]
lea eax, [esp + 0x94]
push edx
push eax
lea ecx, [edi + 0x80]
mov dword [esp + 0xf8], 1
call fcn.005303a0
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x94]
cmp ecx, eax
je 0x52f5f8
mov edx, dword [ecx + 0x10]
add ecx, 0x14
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], edx
call 0x5ea845
mov eax, dword [0x5f9f88]
mov dword [esp + 0x34], eax
push 0x5ea618
lea ecx, [esp + 0x38]
mov byte [esp + 0xf4], 2
call 0x5ea895
mov dword [esp + 0x38], 0xffffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x98], ecx
lea eax, [esp + 0x98]
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [edi + 0x90]
mov byte [esp + 0xf8], 3
mov dword [esp + 0xa4], edx
call fcn.00530a80
mov eax, dword [edi + 0x94]
mov ecx, dword [esp + 0x88]
cmp ecx, eax
je 0x52f6a0
lea ebx, [ecx + 0x14]
lea ecx, [esp + 0x34]
push ebx
call 0x5ea845
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x44], edx
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
push 0xfffffffffffffffe
lea ecx, [esp + 0x24]
add eax, ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [0x597750]
push 0xfffffffffffffffe
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call ebp
mov eax, dword [edi + 0x6c]
mov edx, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x50], edx
jne 0x52f6ee
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push 0xc10
mov ecx, dword [eax - 8]
jmp 0x52f708
mov edx, dword [esi]
cmp eax, 2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
jne 0x52f703
push 0xc12
jmp 0x52f708
push 0xc11
lea ebx, [esp + 0x24]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov ecx, dword [edi + 0x58]
mov eax, dword [esp + 0x50]
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp ecx, ebx
je 0x52f7d2
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp edx, dword [edi + 0x70]
sete cl
cmp ecx, ebx
je 0x52f7ec
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
push 2
lea ecx, [esp + 0x60]
push 2
push ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], eax
call ebp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xe0]
push eax
push ecx
lea ecx, [edi + 0xa0]
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ebx
call fcn.00530bb0
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x60]
lea ecx, [edx + eax + 1]
inc eax
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x50]
cmp eax, 0xc56a31
mov dword [esp + 0x68], ecx
jne 0x52f8c1
push 0xd
call dword [0x5975c8]
push eax
call 0x5f1afe
cmp eax, ebx
jne 0x52f879
xor eax, eax
jmp 0x52f87c
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x70]
cmp ecx, edx
jne 0x52f7ec
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
cmp edx, ecx
je 0x52f73d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
push 2
lea ecx, [esp + 0x70]
push 2
push ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], eax
call ebp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xc8]
push eax
push ecx
lea ecx, [edi + 0xa0]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
call fcn.00530bb0
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x70]
lea ecx, [edx + eax + 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
inc eax
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x74], eax
call 0x5f1bd0
cmp eax, ebx
jne 0x52f921
xor eax, eax
jmp 0x52f924
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x60]
push edx
push eax
call dword [0x597754]
mov ebp, dword [0x597758]
push 0xd
call ebp
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x52f8b4
mov edx, dword [esi]
push 0xe
mov dword [esp + 0x54], edx
call ebp
mov edx, dword [esp + 0x50]
push eax
mov ecx, esi
jmp 0x52f964
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x52f967
push eax
lea ecx, [esp + 0xa4]
call 0x5f1bd0
cmp eax, ebx
jne 0x52f8d6
xor eax, eax
jmp 0x52f8d9
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x5c]
push eax
push ecx
push edx
call dword [0x597754]
mov dword [esp + 0xa0], 0x5c0144
lea ecx, [esp + 0xa0]
mov byte [esp + 0xf0], 4
call 0x5f1b6a
mov eax, dword [edi + 0x50]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov byte [esp + 0xf0], 3
jne 0x52f8b4
mov edx, dword [esi]
not eax
jmp 0x52f961
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x70]
push eax
push ecx
call dword [0x597754]
mov dword [esp + 0x8c], 0x5c0144
lea ecx, [esp + 0x8c]
mov byte [esp + 0xf0], 5
call 0x5f1b6a
mov edx, dword [esi]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xf0], 3
push eax
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, 3
cmp eax, ecx
mov dword [esp + 0x2c], eax
jle 0x52f97e
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x6c]
cmp eax, ebx
jne 0x52f995
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push 0x810
mov ecx, dword [eax - 8]
jmp 0x52f9af
mov edx, dword [esi]
cmp eax, 2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
jne 0x52f9aa
push 0x812
jmp 0x52f9af
push 0x811
lea ebp, [esp + 0x24]
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
cmp dword [esp + 0x40], ebx
je 0x52f9fd
call 0x5fad59
mov ebp, dword [esp + 0x40]
call 0x5fad59
mov eax, dword [eax + 0xc]
and ebp, 0xffff
push ebp
push eax
call dword [0x597734]
mov ecx, dword [esp + 0x20]
push 3
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push edx
call dword [0x5976e0]
cmp dword [esp + 0x44], ebx
je 0x52fa42
call 0x5fad59
mov ebp, dword [esp + 0x44]
call 0x5fad59
mov eax, dword [eax + 0xc]
and ebp, 0xffff
push ebp
push eax
call dword [0x597734]
mov ecx, dword [esp + 0x28]
push 3
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x3c]
add ecx, 0xfffffff0
push eax
push ecx
push edx
call dword [0x5976e0]
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x34]
mov byte [esp + 0xf0], 1
call 0x5ea70c
lea ecx, [esp + 0x4c]
mov dword [esp + 0xf0], 0xffffffff
call 0x5ea70c
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x52f587
xor ebx, ebx
cmp dword [edi + 0x68], ebx
je 0x52fab6
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xfc]
inc eax
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0xdc]
push edx
push eax
mov ecx, esi
call 0x5f1624
mov ecx, dword [esp + 0x18]
push ecx
push ebp
mov ecx, esi
call 0x5f1670
cmp dword [edi + 0x64], ebx
je 0x52faef
mov edx, dword [esp + 0x1c]
lea eax, [edx + 1]
lea edx, [esp + 0xc0]
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x100]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, esi
call 0x5f1624
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jle 0x52fb27
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax]
lea ebx, [edx + 1]
push ebx
lea edx, [esp + 0xd4]
push ecx
push edx
mov ecx, esi
call 0x5f1624
push ebx
push ebp
mov ecx, esi
call 0x5f1670
xor ebx, ebx