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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x503b8c
sub esp, 0x58
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 0xc], edx
call fcn.00502260
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x60]
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 8]
mov esi, dword [edx + 4]
movzx edi, byte [edx]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
movzx eax, byte [eax]
mov byte [esp + 0x1b], al
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
movzx eax, byte [ecx]
xchg edi, eax
mov byte [ecx], al
xchg edi, eax
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov ebx, dword [0xdd7ec0]
test ebx, ebx
jne 0x503b79
mov dword [ecx + 4], esi
movzx ecx, byte [esp + 0x1b]
mov byte [edx], cl
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], ecx
mov ecx, dword [0xdd7ec0]
test ecx, ecx
jne 0x503b64
mov ecx, dword [esp + 0x54]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x70]
mov byte [ecx], al
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], edx
mov edx, dword [0xdd7ec0]
test edx, edx
jne 0x503b53
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], edx
movzx ecx, byte [esp + 0x7c]
test cl, cl
je 0x503a0a
nop
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x68]
cmp ecx, edx
je 0x503b4c
mov ebx, dword [ecx + 0xc]
mov ebp, dword [ecx + 4]
mov esi, dword [edx + 8]
mov eax, edx
mov edx, dword [edx + 4]
cmp esi, ebx
jg 0x503ac2
mov edi, esi
cmp esi, edi
jle 0x503abb
mov dword [esp + 0x20], esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x24], ebx
cmp ebp, edx
je 0x503934
mov dword [esp], ebp
mov dword [esp + 4], edx
shl edi, 2
mov dword [esp + 8], edi
call fcn.004579b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 0xc], ecx
mov ecx, dword [0xdd7ec0]
test ecx, ecx
jne 0x503aaa
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x68]
movzx ecx, byte [eax]
mov byte [edx], cl
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
call fcn.00501c30
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
call fcn.005019e0
nop
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
je 0x503a0a
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 4]
cmp ebp, ebx
jg 0x503a20
mov edi, ebp
cmp ebp, edi
jle 0x503a1c
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], ebx
cmp edx, esi
je 0x5039de
mov dword [esp], edx
mov dword [esp + 4], esi
shl edi, 2
mov dword [esp + 8], edi
call fcn.004579b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 0xc], ecx
mov ecx, dword [0xdd7ec0]
test ecx, ecx
jne 0x503a0e
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x78]
movzx eax, byte [eax]
mov byte [edx], al
add esp, 0x58
ret
lea edi, [edx + 4]
mov eax, dword [esp + 0x4c]
call fcn.00456fe0
jmp 0x503a01
mov edi, ebp
jmp 0x5039bb
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], esi
cmp ebp, 1
jne 0x503a6e
lea eax, [0x8eb040]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00440500
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
mov ebp, 1
mov ebx, 1
jmp 0x5039b7
lea eax, [0x8eb040]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.00440500
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
mov ebp, edi
mov ebx, dword [esp + 0x28]
jmp 0x5039b7
lea edi, [edx + 4]
mov eax, dword [esp + 0x4c]
call fcn.00456fe0
jmp 0x50395b
mov edi, esi
jmp 0x503911
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], edx
cmp esi, 1
jne 0x503b10
lea eax, [0x8eb040]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00440500
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
mov esi, 1
mov ebx, 1
jmp 0x503909
lea eax, [0x8eb040]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 8], ecx
call fcn.00440500
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
mov esi, edi
mov ebx, dword [esp + 0x24]
jmp 0x503909
mov eax, edx
jmp 0x503964
lea edi, [ecx + 4]
mov eax, dword [esp + 0x50]
call fcn.00456fe0
jmp 0x5038d3
lea edi, [edx + 4]
mov ecx, eax
mov eax, dword [esp + 0x54]
call fcn.00456fe0
mov eax, ecx
jmp 0x5038aa
lea edi, [ecx + 4]
mov ecx, eax
mov eax, esi
call fcn.00456fe0
mov eax, ecx
jmp 0x503880
call fcn.004557a0
jmp fcn.005037d0