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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52f478
sub esp, 0x6c
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.0052e570
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
test ebx, ebx
jne 0x52f3d5
test ebp, ebp
jne 0x52f2de
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], ecx
nop
nop
mov ebx, eax
and eax, 0x1f
cmp eax, 0x11
jne 0x52f0d9
mov dword [esp + 0x44], eax
xor ebp, ebp
jmp 0x52ebd8
mov ebp, ecx
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 9
call fcn.0052e0e0
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x10], 8
je 0x52f0d0
mov ecx, dword [esp + 0x44]
cmp ecx, 0x17
je 0x52ef0e
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
call fcn.004852c0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xc], eax
jle 0x52eec8
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.00484780
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0052e300
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x52eeb6
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x10], 9
je 0x52ee9d
mov ecx, dword [esp + 0x34]
inc ecx
mov edx, dword [eax + 0x10]
cmp edx, 8
je 0x52ecb2
cmp edx, 7
je 0x52ebd6
jmp 0x52f44f
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.004852c0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xc], eax
jle 0x52edd4
mov ecx, dword [esp + 0x44]
cmp ecx, 0x11
jne 0x52ee74
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
call fcn.00488110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00488ef0
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x34]
jmp 0x52eda6
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.00484780
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
call fcn.00486c20
mov eax, dword [esp + 0x34]
lea ebx, [eax + 1]
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
call fcn.004852c0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xc], eax
jg 0x52ed4b
test eax, eax
jne 0x52ede1
mov eax, dword [esp + 0x44]
cmp eax, 0x17
je 0x52edfb
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
call fcn.00488110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00488bf0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00486c20
jmp 0x52ede1
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.004872e0
mov eax, dword [esp + 0x34]
jmp 0x52edd4
mov dword [esp], eax
mov dword [esp + 4], 9
call fcn.0052e0e0
mov eax, dword [esp + 0x70]
jmp 0x52ec97
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0052e300
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x52ec89
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
call fcn.00483c30
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xc], eax
jle 0x52ef8a
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
call fcn.004852c0
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xc], eax
jg 0x52ec0b
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
lea ebp, [eax + 1]
mov dword [esp + 0xc], ebp
call fcn.004872e0
mov eax, dword [esp + 0x34]
jmp 0x52ec0b
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
call fcn.00483c30
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.00483c30
mov eax, dword [esp + 0xc]
mov ecx, eax
shr eax, 0x1f
add eax, ecx
sar eax, 1
mov ecx, dword [esp + 0x3c]
add eax, ecx
cmp eax, 4
jge 0x52efe7
mov eax, 4
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.00488110
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 8], ebp
call fcn.004852c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
call fcn.00488bf0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], esi
call fcn.004888b0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x14], ebx
call fcn.00486c20
jmp 0x52ef34
mov ecx, dword [esp + 0x34]
jmp 0x52ecb2
cmp eax, 0x14
je 0x52f1d6
cmp eax, 0x17
je 0x52ebce
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00488110
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x7bb380]
mov dword [esp], edx
call fcn.0040b5d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 5
lea ecx, [0x7e3ddf]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [0xa976a0]
test ecx, ecx
jne 0x52f1c1
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
sar edx, 0x1f
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x52f181
mov dword [esp], ecx
call fcn.0052dfc0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
mov dword [esp], ecx
lea edx, [0x871320]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0052dea0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x70]
mov dword [edx + 0x4c], ecx
mov ecx, dword [0xa976a0]
test ecx, ecx
jne 0x52f1b7
mov dword [edx + 0x50], eax
mov ecx, edx
jmp 0x52f15f
lea edi, [edx + 0x50]
call fcn.0045c3e0
jmp 0x52f1b3
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0045c3e0
mov eax, ecx
jmp 0x52f148
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00485ea0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x52f1ff
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x48]
jmp 0x52f0eb
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00533bc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00408dd0
mov eax, dword [esp + 0xc]
nop
movzx ecx, byte [0xa80ca8]
test cl, cl
je 0x52f2d3
lea ecx, [0x776320]
mov dword [0xa80cac], ecx
mov edx, dword [0xa976a0]
test edx, edx
jne 0x52f2c6
mov dword [0xa80cb0], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x52f2be
nop
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x52f27c
or edx, 0x80
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00486c20
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
xor edx, edx
xor ecx, ecx
xor eax, eax
jmp 0x52f27c
lea edi, [0xa80cb0]
call fcn.0045c3e0
jmp 0x52f257
lea ecx, [0x776320]
jmp 0x52f257
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.00488110
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x7bb380]
mov dword [esp], edx
call fcn.0040b5d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 5
lea ecx, [0x7e3ddf]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [0xa976a0]
test ecx, ecx
jne 0x52f3c0
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
sar edx, 0x1f
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x52f380
mov dword [esp], ecx
call fcn.0052dfc0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x6c
ret
mov dword [esp], ecx
lea edx, [0x871320]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0052dea0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x70]
mov dword [edx + 0x4c], ecx
mov ecx, dword [0xa976a0]
test ecx, ecx
jne 0x52f3b6
mov dword [edx + 0x50], eax
mov ecx, edx
jmp 0x52f35e
lea edi, [edx + 0x50]
call fcn.0045c3e0
jmp 0x52f3b2
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x50]
call fcn.0045c3e0
mov eax, ecx
jmp 0x52f347
mov dword [esp + 0x4c], esi
mov dword [esp + 0x2c], ebx
nop
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call fcn.0052dfc0
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, edx
ja 0x52f470
mov ebx, dword [esp + 0x3c]
dec ebx
cmp ebx, eax
ja 0x52f467
mov ebp, dword [esp + 0x2c]
mov ebp, dword [ebp + 0x10]
mov esi, dword [esp + 0x4c]
mov dword [esp], esi
sub edx, ebx
mov esi, edx
neg edx
sar edx, 0x1f
and edx, ebx
add ecx, edx
mov dword [esp + 4], ecx
sub eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
lea eax, [0x78aa20]
mov dword [esp], eax
lea eax, [0x86a958]
mov dword [esp + 4], eax
call fcn.00430ca0
mov ecx, eax
mov eax, ebx
call fcn.0045c4c0
mov ecx, eax
call fcn.0045c4a0
nop
call fcn.0045ae90
jmp fcn.0052eb50