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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x516456
sub esp, 0x74
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.004a7b10
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 0x51644b
call fcn.004f7a90
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
cmp dword [esp + 8], 0
je 0x516440
mov dword [esp], 4
mov eax, 0x619900
mov dword [esp + 4], eax
call fcn.00428a80
mov ecx, dword [esp + 0x78]
cmp eax, 0
jne 0x516436
mov ebx, dword [ecx + 0x10]
and ebx, 0x18
cmp ebx, 0
je 0x516188
mov dword [esp], ecx
cmp dword [esp], 0
je 0x51642b
call fcn.004f7c70
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call fcn.00406b50
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 0x51616e
mov ebx, 0x5f58d3
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 0x516420
call fcn.004f7a90
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 0x516415
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.00515530
mov ebx, dword [esp + 0x78]
cmp ebx, 0
je 0x51640e
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 0x51625b
mov dword [esp], 0x5c41e0
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.0043c390
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 0x516407
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.004536c0
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 [0x6d9e18], 0
jne 0x5163e8
mov dword [edi + 0x1c], ebp
cmp ecx, 0
je 0x516351
mov ebx, ecx
dec ebx
cmp ebx, ecx
jae 0x5163e1
mov ebp, dword [esp + 0x80]
add ebp, ebx
movzx ebx, byte [ebp]
cmp bl, 0xa
jne 0x516351
cmp edi, 0
je 0x51634d
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.00429950
add esp, 0x74
ret
mov dword [edi], eax
jmp 0x5162f1
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov ebp, eax
inc ebp
cmp ebp, edx
ja 0x516370
mov dword [edi + 0x20], ebp
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0xa
jmp 0x5162ec
mov dword [esp], 0x5c41e0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043c390
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edi, 0
je 0x5163dd
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 [0x6d9e18], 0
jne 0x5163c0
mov dword [edi + 0x1c], ecx
jmp 0x516364
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0040f2f0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
jmp 0x516364
mov dword [edi], eax
jmp 0x5163a1
call fcn.004287a0
ud2
lea esi, [edi + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0040f2f0
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
jmp 0x5162c6
call fcn.00428810
ud2
mov dword [ebx], eax
jmp 0x5161f3
mov dword [0], eax
jmp 0x5161a4
mov dword [0], eax
jmp 0x51617f
mov dword [0], eax
jmp 0x516122
nop
call fcn.00429950
add esp, 0x74
ret
mov dword [0], eax
jmp 0x5160e8
mov dword [0], eax
jmp 0x5160d0
call fcn.00450ed0
jmp fcn.00516060