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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x517441
sub esp, 0x4c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.00518fb0
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x5173a1
mov dword [eax + 0x74], ecx
mov edx, dword [0xa08230]
lea ebx, [eax + 0x78]
test edx, edx
jne 0x517384
mov edx, dword [esp + 0x58]
mov dword [eax + 0x78], edx
mov byte [eax + 0x7c], 0
mov dword [eax + 0x80], 0
lea edx, [eax + 0x74]
xor ebx, ebx
lea ebp, [0x802fa0]
mov esi, dword [eax + 8]
mov edi, dword [0x9f3944]
cmp esi, edi
jne 0x51731e
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebp
mov esi, dword [eax + 0xc]
cmp ebx, esi
jge 0x517085
test ecx, ecx
je 0x517205
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.005158b0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
call fcn.00515910
movzx eax, byte [esp + 0x10]
test al, al
je 0x5171cc
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x58]
mov edx, dword [esp + 0x7c]
lea ebx, [edx + ecx]
mov dword [esp + 0x28], ebx
mov ebp, dword [eax + 0x54]
mov esi, dword [esp + 0x80]
cmp ebx, esi
ja 0x517181
mov edi, dword [esp + 0x78]
cmp ebx, esi
ja 0x51743a
mov dword [esp + 0x48], edi
mov dword [esp + 0x80], esi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.0044e0c0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x517175
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 0x50]
mov dword [esp], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
call fcn.00519090
mov eax, dword [esp + 0x48]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x8c], eax
add esp, 0x4c
ret
xor ecx, ecx
lea eax, [0xa07a80]
xor edx, edx
jmp 0x51712a
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], ebp
lea eax, [0x744080]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00439c80
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x44]
jmp 0x5170ee
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00519090
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x4c
ret
mov ecx, dword [eax + 0x10]
lea esi, [eax + 0x10]
test ecx, ecx
je 0x517279
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], ecx
call fcn.00515370
movzx eax, byte [esp + 0x18]
test al, al
jne 0x5170c6
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00519090
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x4c
ret
mov dword [esp + 0x20], ebx
mov ecx, dword [eax + 4]
mov edi, dword [ecx + 4]
cmp edi, 0x1f4
jle 0x5172c4
mov ecx, dword [0x9f3940]
mov edi, dword [0xa08230]
test edi, edi
jne 0x5172a3
mov dword [eax + 0x10], ecx
jmp 0x51720f
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0040f250
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
jmp 0x51720f
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ecx
lea eax, [0x779900]
mov dword [esp], eax
call fcn.0040e9e0
mov eax, dword [0xa08230]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x517304
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
jmp 0x517291
mov dword [esp + 0x2c], ecx
mov dword [esp], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.0040f250
mov ecx, dword [esp + 0x2c]
jmp 0x5172ee
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
call fcn.00516990
movzx eax, byte [esp + 0x14]
test al, al
jne 0x5170c6
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00519090
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x4c
ret
mov dword [esp], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
jmp 0x517044
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x5173ef
mov ebx, dword [esp + 0x60]
mov dword [eax + 0x64], ebx
mov ebp, dword [esp + 0x64]
mov dword [eax + 0x68], ebp
mov ebp, dword [0xa08230]
lea esi, [eax + 0x60]
test ebp, ebp
jne 0x5173d5
mov dword [eax + 0x60], edx
lea edx, [eax + 0x60]
lea ebp, [0x802f60]
jmp 0x51705d
mov dword [esp], esi
mov dword [esp + 4], edx
call fcn.0040f250
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x60]
jmp 0x5173c7
mov edx, dword [esp + 0x6c]
mov dword [eax + 0x70], edx
mov ebx, dword [0xa08230]
lea ebp, [eax + 0x6c]
test ebx, ebx
jne 0x51741c
mov ebx, dword [esp + 0x68]
mov dword [eax + 0x6c], ebx
lea esi, [eax + 0x6c]
mov ebx, edx
mov edx, esi
lea ebp, [0x802fe0]
jmp 0x51705d
mov dword [esp], ebp
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
call fcn.0040f250
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
jmp 0x51740a
call fcn.004269c0
ud2
call fcn.0044be50
jmp fcn.00516ff0