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

Disassembly:
mov ecx, dword [0x817cc4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52c146
sub esp, 0x7c
mov ecx, dword [0x817f20]
mov edi, dword [esp + 0x80]
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
test ecx, ecx
je 0x52bab7
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], edx
lea eax, [0x5c5040]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00410f70
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x80]
xor eax, eax
call fcn.00466f57
mov ecx, dword [esp + 0x80]
mov dword [ecx + 8], ebx
mov ebx, dword [0x817f20]
test ebx, ebx
je 0x52badf
call fcn.00466d20
mov dword [edi], edx
mov ebx, dword [ecx + 0xc]
mov dword [edi + 4], ebx
mov dword [ecx + 0xc], edx
lea eax, [0x5b8840]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x88]
mov dword [esp + 8], edx
call fcn.004097c0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x52bb3e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
mov dword [edx], eax
mov eax, dword [0x817f20]
test eax, eax
je 0x52bb36
call fcn.00466d20
mov dword [edi], ecx
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov dword [edx + 4], ecx
jmp 0x52bc54
nop
mov eax, dword [esp + 0x84]
lea ecx, [0x6df664]
cmp eax, ecx
jne 0x52bb59
mov eax, dword [esp + 0x88]
jmp 0x52bb5e
mov eax, 0
jne 0x52bb6d
cmp dword [eax + 4], 0x1000
jge 0x52bc2b
lea eax, [0x5c75a0]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
mov dword [esp + 0x30], eax
lea ecx, [0x5b1040]
mov dword [esp], ecx
mov dword [esp + 4], 0x1000
mov dword [esp + 8], 0x1000
call fcn.0044d2d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
lea edi, [esp + 0x50]
xor eax, eax
call fcn.00466f55
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x1000
mov dword [esp + 0x58], 0x1000
mov eax, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x60], eax
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [0x817f20]
test eax, eax
je 0x52bc1a
lea eax, [0x5c75a0]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
lea ecx, [esp + 0x50]
mov dword [esp + 8], ecx
call fcn.00410fa0
mov edi, dword [esp + 0x30]
lea esi, [esp + 0x50]
call fcn.00467402
mov eax, dword [esp + 0x30]
lea ecx, [0x6dfb6c]
mov edx, dword [esp + 0x80]
mov dword [edx], ecx
mov ecx, dword [0x817f20]
test ecx, ecx
je 0x52bc51
call fcn.00466d20
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov dword [edx + 4], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [edx]
lea ebx, [0x5b65e0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.004096b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x80]
lea edx, [ecx + 0x20]
mov dword [esp + 0x44], edx
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 2
call fcn.00487160
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x18], eax
mov eax, dword [0x817f20]
test eax, eax
je 0x52bcd6
call fcn.00466d20
mov dword [edi], ecx
mov eax, dword [edx + 0x1c]
mov dword [edi + 4], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [edx + 0x18]
test eax, eax
je 0x52bd58
cmp dword [0x7eb9c0], eax
jne 0x52bd40
mov edx, dword [0x7eb9c4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00403dd0
movzx eax, byte [esp + 0xc]
test al, al
je 0x52bd39
mov eax, dword [0x7eb9c8]
mov ecx, dword [0x7eb9cc]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x18], eax
mov eax, dword [0x817f20]
test eax, eax
je 0x52bd34
call fcn.00466d20
mov dword [edi], ecx
mov eax, dword [edx + 0x1c]
mov dword [edi + 4], eax
mov dword [edx + 0x1c], ecx
jmp 0x52bd40
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x7c
ret
movzx eax, byte [edx + 0x20]
mov ecx, eax
and eax, 0xf
nop
cmp al, 8
jne 0x52bd98
shr cl, 4
cmp cl, 7
ja 0x52bd98
movzx eax, word [edx + 0x20]
rol ax, 8
movzx ecx, ax
mov ebx, ecx
shl ecx, 0x10
imul ebx, ebx, 0x843
add ecx, ebx
rcr ecx, 1
shr ecx, 0x14
mov ebx, ecx
shl ecx, 5
sub ecx, ebx
cmp ax, cx
je 0x52bdd3
mov eax, dword [0x7ebdb8]
mov ecx, dword [0x7ebdbc]
mov dword [edx + 0x18], eax
mov ebx, dword [0x817f20]
test ebx, ebx
je 0x52bdbe
call fcn.00466d20
mov dword [edi], ecx
mov ebx, dword [edx + 0x1c]
mov dword [edi + 4], ebx
mov dword [edx + 0x1c], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x7c
ret
movzx eax, byte [edx + 0x21]
test al, 0x20
je 0x52bf6d
mov byte [esp + 0x27], al
mov eax, dword [edx + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [edx]
lea ebx, [0x5b65e0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.004096b0
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 4
call fcn.00487160
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x18], eax
mov eax, dword [0x817f20]
test eax, eax
je 0x52be5c
call fcn.00466d20
mov dword [edi], ecx
mov eax, dword [edx + 0x1c]
mov dword [edi + 4], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [edx + 0x18]
test eax, eax
je 0x52bede
cmp dword [0x7eb9c0], eax
jne 0x52bec6
mov edx, dword [0x7eb9c4]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00403dd0
movzx eax, byte [esp + 0xc]
test al, al
je 0x52bebf
mov eax, dword [0x7eb9c8]
mov ecx, dword [0x7eb9cc]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x18], eax
mov eax, dword [0x817f20]
test eax, eax
je 0x52beba
call fcn.00466d20
mov dword [edi], ecx
mov eax, dword [edx + 0x1c]
mov dword [edi + 4], eax
mov dword [edx + 0x1c], ecx
jmp 0x52bec6
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x7c
ret
mov eax, dword [edx + 0x20]
bswap eax
mov dword [esp + 0x28], eax
nop
mov dword [esp], 1
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x94]
mov dword [esp + 0xc], ebp
call fcn.0052b410
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x10], eax
je 0x52bf61
mov eax, dword [0x7ebdb0]
mov ecx, dword [0x7ebdb4]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x18], eax
mov ebx, dword [0x817f20]
test ebx, ebx
je 0x52bf4c
call fcn.00466d20
mov dword [edi], ecx
mov ebx, dword [edx + 0x1c]
mov dword [edi + 4], ebx
mov dword [edx + 0x1c], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x7c
ret
movzx eax, byte [esp + 0x27]
mov edx, dword [esp + 0x80]
mov ecx, dword [edx + 8]
test ecx, ecx
jne 0x52c062
test al, 0x20
je 0x52c002
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
lea ebx, [0x5b65e0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004096b0
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x10], eax
call fcn.0052aaa0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [edx + 8], eax
mov eax, dword [0x817f20]
test eax, eax
je 0x52bffa
call fcn.00466d20
mov dword [edi], ecx
mov eax, dword [edx + 0xc]
mov dword [edi + 4], eax
mov dword [edx + 0xc], ecx
jmp 0x52c0e9
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
lea ebx, [0x5b65e0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004096b0
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.0052a830
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x80]
mov dword [edx + 8], eax
mov eax, dword [0x817f20]
test eax, eax
je 0x52c05a
call fcn.00466d20
mov dword [edi], ecx
mov eax, dword [edx + 0xc]
mov dword [edi + 4], eax
mov dword [edx + 0xc], ecx
jmp 0x52c0e9
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
lea ebx, [0x5b65e0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004096b0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 8]
mov ebx, dword [esp + 8]
mov dword [esp + 0x3c], ebx
lea ebp, [0x5b6940]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00409710
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x14], ecx
call eax
lea eax, [0x5b1880]
mov dword [esp], eax
call fcn.0040bd60
mov eax, dword [esp + 4]
nop
mov dword [eax], 1
lea ecx, [0x6e00d8]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x10], ecx
mov ecx, dword [0x817f20]
test ecx, ecx
je 0x52c129
call fcn.00466d20
mov dword [edi], eax
mov ecx, dword [edx + 0x14]
mov dword [edi + 4], ecx
mov dword [edx + 0x14], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x7c
ret
call fcn.00465910
jmp fcn.0052ba60