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

Disassembly:
mov ecx, dword [0x6d0e30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x517129
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
movzx ebx, byte [edx + 0xa8]
test bl, bl
je 0x516ea0
mov eax, 1
jmp 0x516eb4
mov dword [esp], edx
call fcn.0051b940
movzx eax, byte [esp + 4]
mov edx, dword [esp + 0x84]
test al, al
je 0x516eda
mov ecx, dword [edx + 0x98]
mov eax, dword [edx + 0xa0]
cmp eax, ecx
jae 0x517123
mov ebx, dword [edx + 0x94]
lea ebp, [eax + eax*8]
lea ebx, [ebx + ebp*8]
jmp 0x516edc
xor ebx, ebx
test ebx, ebx
je 0x51710d
cmp dword [ebx], 0x11
jne 0x51706a
nop
mov byte [edx + 0xa8], 0
inc dword [edx + 0xa4]
mov ecx, dword [edx + 0x98]
mov eax, dword [edx + 0xa0]
cmp ecx, eax
jbe 0x51711e
mov ebp, dword [edx + 0x94]
lea eax, [eax + eax*8]
lea ebp, [ebp + eax*8]
cmp dword [ebp], 2
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg ebp, eax
mov byte [edx + 0x8d], al
xchg ebp, eax
inc dword [edx + 0xa0]
movzx ebp, byte [edx + 0xa8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x516f49
mov eax, 1
jmp 0x516f65
mov dword [esp + 0x24], ebx
mov dword [esp], edx
call fcn.0051b940
movzx eax, byte [esp + 4]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x24]
test al, al
je 0x516f8b
mov ecx, dword [edx + 0x98]
mov eax, dword [edx + 0xa0]
cmp ecx, eax
jbe 0x517119
mov ecx, dword [edx + 0x94]
lea eax, [eax + eax*8]
lea eax, [ecx + eax*8]
jmp 0x516f8d
xor eax, eax
test eax, eax
je 0x51705e
mov eax, dword [eax]
cmp eax, 0xf
je 0x51706a
cmp eax, 0xb
je 0x51706a
mov eax, dword [edx + 0xdc]
mov ecx, dword [edx + 0xd8]
inc ecx
mov ebx, dword [edx + 0xd4]
cmp eax, ecx
jae 0x517023
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x55a3a0]
mov dword [esp + 0x10], eax
call fcn.0044b6b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x84]
mov dword [ebx + 0xdc], eax
mov eax, dword [0x6d0ed8]
test eax, eax
je 0x517015
call fcn.00464b00
mov dword [edi], ecx
mov eax, dword [ebx + 0xd4]
mov dword [edi + 4], eax
mov dword [ebx + 0xd4], ecx
mov eax, edx
mov edx, ebx
mov ebx, ecx
mov ecx, eax
mov dword [edx + 0xd8], ecx
mov dword [ebx + ecx*4 - 4], 0x12
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
mov byte [esp + 9], 0
call fcn.00513b40
movzx eax, byte [esp + 0xc]
mov byte [esp + 0x8c], al
sub esp, 0xffffff80
ret
mov byte [esp + 0x8c], 0
sub esp, 0xffffff80
ret
mov dword [edx + 0xd0], 0x12
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [ebx + 0xc]
lea edi, [esp + 0x28]
lea esi, [0x5b6dc0]
call fcn.00465124
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov edi, dword [esp + 0x88]
test byte [edi], al
mov eax, dword [0x6d0ed8]
test eax, eax
je 0x5170f8
lea eax, [0x570820]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
call fcn.004113d0
mov edi, dword [esp + 0x88]
lea esi, [esp + 0x28]
call fcn.00465124
mov byte [esp + 0x8c], 1
sub esp, 0xffffff80
ret
mov byte [esp + 0x8c], 0
sub esp, 0xffffff80
ret
call fcn.00464b70
call fcn.00464b70
call fcn.00464b70
nop
call fcn.004636f0
jmp fcn.00516e70