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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52cd3a
sub esp, 0x64
mov edx, dword [0x77d694]
mov ebx, dword [0x77d690]
test edx, edx
jle 0x52cd23
mov ecx, dword [esp + 0x68]
xor eax, eax
xor ebp, ebp
xor esi, esi
jmp 0x52c850
add ebx, 0x20
mov eax, ebp
mov ebp, edi
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x44]
mov esi, ebx
call fcn.0045e570
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x44], ecx
jne 0x52cd1a
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, ebp
lea ebp, [eax + 1]
cmp ebp, edx
jl 0x52c849
mov dword [esp + 0x2c], esi
test edi, edi
jne 0x52cc2e
cmp esi, 4
jne 0x52cc10
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x84]
test ebp, ebp
je 0x52c9c5
mov ebp, dword [ebp + 8]
cmp ebp, 0x188a5798
jne 0x52c9e3
mov ecx, dword [esp + 0x84]
lea ebp, [0x5e1640]
cmp ecx, ebp
jne 0x52c9c5
mov ecx, dword [esp + 0x88]
mov edi, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx]
cmp esi, 4
jne 0x52c97d
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
call fcn.004fa9a0
movzx eax, byte [esp + 0x24]
test al, al
je 0x52c944
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x64
ret
lea eax, [0x5e46a0]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x22
lea ecx, [0x619b72]
mov dword [eax], ecx
lea ecx, [0x65e99c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x64
ret
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
call fcn.004091b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
lea ecx, [0x5e1640]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0052c740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
mov eax, dword [0x782f90]
mov ecx, dword [0x782f94]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
cmp ebp, 0x2fd00e80
jne 0x52cacc
lea ecx, [0x5fdae0]
mov ebp, dword [esp + 0x84]
cmp ecx, ebp
jne 0x52c9c5
cmp esi, 3
jne 0x52ca9b
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
call fcn.004ef6b0
movzx eax, byte [esp + 0x1c]
test al, al
je 0x52ca62
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x64
ret
lea eax, [0x5e46a0]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x618de1]
mov dword [eax], ecx
lea ecx, [0x65e99c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x64
ret
mov dword [esp], esi
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.0052c740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
cmp ebp, 0xcc456746
jne 0x52c9c5
mov dword [esp + 0x74], edx
lea ebp, [0x5e62a0]
mov edx, dword [esp + 0x84]
cmp ebp, edx
jne 0x52c9c5
cmp esi, 1
jne 0x52cbdf
nop
add ecx, 0xfffffff3
cmp ecx, 2
ja 0x52cb87
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x20], eax
call fcn.004fbc80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
call fcn.004fb230
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
mov dword [esp], esi
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.0052c740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
mov eax, dword [0x782f90]
mov ecx, dword [0x782f94]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
cmp edi, 2
je 0x52ccf6
cmp edi, 0x14
jae 0x52cc57
mov edx, dword [0x783544]
mov ebx, dword [0x783540]
cmp edi, edx
jae 0x52cd30
mov eax, dword [ebx + edi*4]
test eax, eax
jne 0x52cc75
mov eax, dword [0x782f90]
mov ecx, dword [0x782f94]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x64
ret
mov dword [esp + 0x34], edi
mov dword [esp], edi
call fcn.004bbc70
mov eax, dword [esp + 4]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
call edx
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
jmp 0x52c89f
mov dword [esp], ecx
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x65ed20]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
add esp, 0x64
ret
mov esi, dword [esp + 0x2c]
jmp 0x52c875
mov ecx, dword [esp + 0x68]
xor edi, edi
xor esi, esi
jmp 0x52c87e
mov eax, edi
mov ecx, edx
call fcn.0045dea0
nop
call fcn.0045c8b0
jmp fcn.0052c810