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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5379d5
sub esp, 0x7c
mov ebx, dword [esp + 0x88]
mov ebp, dword [ebx + 0x10]
mov eax, ebx
mov ebx, dword [esp + 0x80]
cmp dword [ebx + 0xc], ebp
jg 0x53792a
mov ebp, dword [eax + 0x18]
mov dword [esp + 0x64], ebp
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x28], edx
mov eax, ebp
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x38], ebx
xor esi, esi
jmp 0x53771f
add ebp, 0x10
inc esi
mov ebx, edi
cmp esi, ebx
jge 0x5378d7
mov edi, ebx
mov ebx, dword [ebp]
mov dword [esp + 0x34], ebx
mov ebx, dword [ebp + 4]
mov dword [esp + 0x30], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x2c], ebx
movzx ebx, byte [ebp + 8]
mov byte [esp + 0x1f], bl
mov ebx, dword [esp + 0x34]
cmp ebx, 0xffffffff
je 0x537719
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x30]
cmp ebp, ecx
ja 0x537923
sub edx, ebp
mov dword [esp + 0x24], edx
neg edx
sar edx, 0x1f
and ebp, edx
mov edx, ebx
lea ebx, [eax + ebp]
mov dword [esp + 0x60], ebx
movzx ebx, byte [esp + 0x1f]
test bl, bl
jne 0x5378e7
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x5377c0
mov eax, dword [esp + 0x24]
cmp eax, 4
jb 0x537917
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + eax]
mov ebx, dword [esp + 0x84]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00510760
jmp 0x5378ba
test bl, bl
jne 0x5378e7
cmp eax, 2
jne 0x537812
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x53790b
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + ebp + 4]
mov ebx, dword [ebp + eax]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x84]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.00510880
jmp 0x5378ba
test bl, bl
jne 0x5378e7
cmp eax, 3
jne 0x537866
mov eax, dword [esp + 0x24]
cmp eax, 0xc
jb 0x5378ff
lea edi, [esp + 0x44]
mov esi, dword [esp + 0x60]
call fcn.004664e2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x84]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.00510910
jmp 0x5378ba
test bl, bl
jne 0x5378e7
cmp eax, 4
jne 0x5378e7
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x5378db
lea edi, [esp + 0x50]
mov esi, dword [esp + 0x60]
call fcn.004664d8
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov esi, ebp
mov ebp, dword [esp + 0x84]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
call fcn.005109c0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
jmp 0x537719
add esp, 0x7c
ret
mov ecx, 0x10
mov edx, eax
call fcn.00465e40
lea eax, [0x69bcc0]
mov dword [esp], eax
lea eax, [0x784894]
mov dword [esp + 4], eax
call fcn.00436d20
mov ecx, 0xc
mov edx, eax
call fcn.00465e40
mov ecx, 8
mov edx, eax
call fcn.00465e40
mov ecx, 4
mov edx, eax
call fcn.00465e40
mov eax, ebp
call fcn.00465e60
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
lea eax, [0x6ff92f]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x5379c8
mov eax, dword [eax + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00436d20
nop
call fcn.004649b0
jmp fcn.005376c0