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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x516ec6
sub esp, 0x74
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.004a8580
mov ebx, dword [esp]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x70], ebx
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
cmp dword [esp], 0
je 0x516ebb
call fcn.004d2f90
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
cmp dword [esp + 8], 0
je 0x516eb0
mov dword [esp], 4
mov eax, 0x61afe0
mov dword [esp + 4], eax
call fcn.00429480
mov ecx, dword [esp + 0x78]
cmp eax, 0
jne 0x516ea6
mov ebx, dword [ecx + 0x10]
and ebx, 0x18
cmp ebx, 0
je 0x516bf8
mov dword [esp], ecx
cmp dword [esp], 0
je 0x516e9b
call fcn.004d3170
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call fcn.00407550
mov ebx, dword [esp + 8]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
movzx ebx, byte [esp + 0x14]
cmp bl, 0
jne 0x516bde
mov ebx, 0x5f6873
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 3
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
cmp dword [esp], 0
je 0x516e90
call fcn.004d2f90
mov ecx, dword [esp + 0x78]
mov ebp, dword [ecx + 0x24]
mov dword [ecx + 0x20], 0
mov dword [esp], ecx
mov dword [esp + 4], ecx
cmp dword [esp + 4], 0
je 0x516e85
add dword [esp + 4], 0x1c
mov ebx, dword [esp + 0x64]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
call fcn.00515fa0
mov ebx, dword [esp + 0x78]
cmp ebx, 0
je 0x516e7e
mov edi, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x20]
mov dword [esp + 0x5c], ebp
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x58], edi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x60], ecx
mov ebx, dword [esp + 0x84]
mov ebp, esi
add ebp, ebx
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jbe 0x516ccb
mov dword [esp], 0x5c5000
mov dword [esp + 0x4c], edi
mov dword [esp + 4], edi
mov dword [esp + 0x50], esi
mov dword [esp + 8], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
call fcn.0043cd90
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
cmp eax, ecx
ja 0x516e77
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0x5c]
mov ebp, edi
mov dword [esp + 0x4c], edi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004540c0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
mov ebp, dword [esp + 0x50]
mov dword [edi + 0x20], ebp
mov ebp, dword [esp + 0x54]
mov dword [edi + 0x24], ebp
mov ebp, dword [esp + 0x4c]
cmp byte [0x6dae38], 0
jne 0x516e58
mov dword [edi + 0x1c], ebp
cmp ecx, 0
je 0x516dc1
mov ebx, ecx
dec ebx
cmp ebx, ecx
jae 0x516e51
mov ebp, dword [esp + 0x80]
add ebp, ebx
movzx ebx, byte [ebp]
cmp bl, 0xa
jne 0x516dc1
cmp edi, 0
je 0x516dbd
mov ebp, dword [edi + 0x14]
mov dword [esp + 0x44], ebp
mov ebp, dword [edi + 0x18]
mov eax, edi
add eax, 0x1c
lea edi, [esp + 4]
cld
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov dword [esp + 0x48], ebp
mov dword [esp], ebp
mov ebx, dword [esp + 0x44]
mov ebx, dword [ebx + 0x14]
call ebx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x8c], ecx
nop
call fcn.0042a350
add esp, 0x74
ret
mov dword [edi], eax
jmp 0x516d61
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov ebp, eax
inc ebp
cmp ebp, edx
ja 0x516de0
mov dword [edi + 0x20], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0xa
jmp 0x516d5c
mov dword [esp], 0x5c5000
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043cd90
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edi, 0
je 0x516e4d
mov ebp, eax
mov dword [esp + 0x28], eax
inc ebp
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], edx
mov dword [esp + 0x30], ecx
cmp byte [0x6dae38], 0
jne 0x516e30
mov dword [edi + 0x1c], ecx
jmp 0x516dd4
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0040fcf0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x516dd4
mov dword [edi], eax
jmp 0x516e11
call fcn.004291a0
ud2
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0040fcf0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
jmp 0x516d36
call fcn.00429210
ud2
mov dword [ebx], eax
jmp 0x516c63
mov dword [0], eax
jmp 0x516c14
mov dword [0], eax
jmp 0x516bef
mov dword [0], eax
jmp 0x516b92
nop
call fcn.0042a350
add esp, 0x74
ret
mov dword [0], eax
jmp 0x516b58
mov dword [0], eax
jmp 0x516b40
call fcn.004518d0
jmp fcn.00516ad0