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

Disassembly:
mov ecx, dword [0x6cfe90]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x516d69
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
movzx ebx, byte [edx + 0xa8]
test bl, bl
je 0x516ae0
mov eax, 1
jmp 0x516af4
mov dword [esp], edx
call fcn.0051b580
movzx eax, byte [esp + 4]
mov edx, dword [esp + 0x84]
test al, al
je 0x516b1a
mov ecx, dword [edx + 0x98]
mov eax, dword [edx + 0xa0]
cmp eax, ecx
jae 0x516d63
mov ebx, dword [edx + 0x94]
lea ebp, [eax + eax*8]
lea ebx, [ebx + ebp*8]
jmp 0x516b1c
xor ebx, ebx
test ebx, ebx
je 0x516d4d
cmp dword [ebx], 0x11
jne 0x516caa
nop
mov byte [edx + 0xa8], 0
inc dword [edx + 0xa4]
mov ecx, dword [edx + 0x98]
mov eax, dword [edx + 0xa0]
cmp ecx, eax
jbe 0x516d5e
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 0x516b89
mov eax, 1
jmp 0x516ba5
mov dword [esp + 0x24], ebx
mov dword [esp], edx
call fcn.0051b580
movzx eax, byte [esp + 4]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x24]
test al, al
je 0x516bcb
mov ecx, dword [edx + 0x98]
mov eax, dword [edx + 0xa0]
cmp ecx, eax
jbe 0x516d59
mov ecx, dword [edx + 0x94]
lea eax, [eax + eax*8]
lea eax, [ecx + eax*8]
jmp 0x516bcd
xor eax, eax
test eax, eax
je 0x516c9e
mov eax, dword [eax]
cmp eax, 0xf
je 0x516caa
cmp eax, 0xb
je 0x516caa
mov eax, dword [edx + 0xdc]
mov ecx, dword [edx + 0xd8]
inc ecx
mov ebx, dword [edx + 0xd4]
cmp eax, ecx
jae 0x516c63
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x55a360]
mov dword [esp + 0x10], eax
call fcn.0044b670
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 [0x6cff38]
test eax, eax
je 0x516c55
call fcn.00464ac0
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.00513780
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, [0x5b6d00]
call fcn.004650e4
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 [0x6cff38]
test eax, eax
je 0x516d38
lea eax, [0x570780]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
call fcn.004113a0
mov edi, dword [esp + 0x88]
lea esi, [esp + 0x28]
call fcn.004650e4
mov byte [esp + 0x8c], 1
sub esp, 0xffffff80
ret
mov byte [esp + 0x8c], 0
sub esp, 0xffffff80
ret
call fcn.00464b30
call fcn.00464b30
call fcn.00464b30
nop
call fcn.004636b0
jmp fcn.00516ab0