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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52de75
sub esp, 0x50
mov eax, dword [esp + 0x68]
test eax, eax
je 0x52de4b
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x52dc55
mov ebp, eax
mov eax, dword [esp + 0x68]
mov esi, eax
sub eax, ecx
cmp eax, 4
jl 0x52dda8
mov edi, dword [esp + 0x5c]
sub edi, ebp
cmp edi, 4
jl 0x52dda8
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x5c]
cmp ebp, edx
ja 0x52de6e
mov dword [esp + 0x48], ebx
mov edx, dword [esp + 0x60]
sub edx, ebp
mov dword [esp + 0x40], edx
neg edx
sar edx, 0x1f
and edx, ebp
mov ebx, dword [esp + 0x58]
add edx, ebx
cmp ecx, esi
ja 0x52de6e
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ebp
mov ebx, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x6c]
sub esi, ecx
mov dword [esp + 0x34], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ecx
mov ebp, dword [esp + 0x64]
add esi, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
call fcn.0052de80
movzx eax, byte [esp + 0x1c]
test al, al
je 0x52dd1f
mov eax, dword [esp + 0x38]
add eax, 3
mov ecx, dword [esp + 0x30]
add ecx, 4
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
jmp 0x52dc4f
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], ebp
call fcn.0052d560
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
add ebx, ebp
test ecx, ecx
jne 0x52dd8c
mov ebp, ecx
mov ecx, edx
mov edx, eax
mov eax, ebx
mov ebx, ebp
jmp 0x52dc4f
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x50
ret
mov esi, dword [esp + 0x68]
mov ebp, ebx
mov ebx, ecx
mov ecx, edx
mov edx, eax
cmp ecx, esi
jge 0x52de3b
mov eax, dword [esp + 0x5c]
cmp ebp, eax
ja 0x52de67
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov ebx, dword [esp + 0x60]
sub ebx, ebp
mov dword [esp + 0x3c], ebx
neg ebx
sar ebx, 0x1f
and ebx, ebp
mov edi, dword [esp + 0x58]
add ebx, edi
mov dword [esp + 4], ebx
sub eax, ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.0052d560
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
add ebx, ebp
test ecx, ecx
je 0x52dd9c
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x50
ret
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edx
add esp, 0x50
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x50
ret
call fcn.004269c0
ud2
call fcn.004269c0
ud2
call fcn.0044be50
jmp fcn.0052dc20