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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x517017
sub esp, 0x5c
mov eax, dword [esp + 0x60]
test byte [eax], al
movzx ecx, byte [esp + 0x6c]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov ebp, eax
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov byte [esp + 0x13], al
xor ebp, ebp
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0x60]
mov ebp, eax
jmp 0x516e9f
movzx ecx, byte [esp + 0x6c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, esi
mov esi, edi
mov edi, ebx
mov ebx, eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x516ff2
mov dword [esp + 0x18], edi
mov edi, dword [eax + 8]
cmp esi, edi
jge 0x516ef5
test cl, cl
je 0x516ecb
cmp ebp, eax
jne 0x516ecb
mov edi, esi
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
movzx esi, byte [esp + 0x6c]
jmp 0x516f04
mov esi, ecx
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov ecx, 1
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
jmp 0x516f04
mov edi, esi
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
movzx esi, byte [esp + 0x6c]
test ebx, ebx
je 0x516fe7
mov dword [esp + 0x54], ecx
mov esi, dword [eax + 0x18]
test esi, esi
je 0x516f46
movzx eax, byte [edx]
mov ecx, dword [esp + 0x60]
movzx eax, byte [ecx + eax + 0x28]
cmp dword [ecx + 0x24], eax
je 0x516fc9
mov eax, dword [esi + eax*4]
dec ebx
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add edx, ebx
mov ebx, dword [esp + 0x18]
inc ebx
jmp 0x516e72
mov esi, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
test esi, esi
je 0x516f99
cmp ebx, esi
jge 0x516f58
xor ecx, ecx
jmp 0x516f9b
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], edi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.00402870
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x50]
jmp 0x516f9b
xor ecx, ecx
test cl, cl
je 0x516fd8
mov ecx, dword [eax + 0x10]
mov esi, dword [esp + 0x18]
add esi, ecx
sub ebx, ecx
mov dword [esp + 0x28], ebx
neg ebx
sar ebx, 0x1f
and ebx, ecx
add edx, ebx
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x60]
mov ebx, esi
mov esi, dword [esp + 0x28]
jmp 0x516e72
mov eax, dword [esp + 0x24]
movzx edx, byte [esp + 0x13]
mov ecx, dword [esp + 0x54]
jmp 0x517003
mov eax, dword [esp + 0x24]
movzx edx, byte [esp + 0x13]
mov ecx, dword [esp + 0x54]
jmp 0x517003
mov eax, dword [esp + 0x24]
movzx edx, byte [esp + 0x13]
jmp 0x517003
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
movzx edx, byte [esp + 0x13]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], eax
mov byte [esp + 0x7c], dl
add esp, 0x5c
ret
call fcn.0045dbb0
jmp fcn.00516e20