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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51717f
add esp, 0xffffff80
mov eax, 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x516ad6
movzx eax, byte [eax]
test al, al
jne 0x517121
call fcn.00518510
lea eax, [0x626ff8]
mov dword [esp + 0x7c], eax
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x94]
cmp eax, 4
je 0x5170a4
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea edi, [esp + 0x54]
xor eax, eax
call fcn.0045e0a8
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x98]
mov dword [esp], ecx
mov edx, dword [esp + 0x9c]
mov dword [esp + 4], edx
call fcn.0048b300
mov ecx, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0xc], ecx
call fcn.0048e970
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ecx, ecx
jne 0x516e5e
lea eax, [0x62732c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], eax
mov byte [esp + 0x27], 3
mov eax, dword [esp + 0x34]
test eax, eax
je 0x516d55
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp eax, 2
je 0x516d07
cmp eax, 0x17
je 0x516cb9
mov dword [esp], 0x20000027
call fcn.0048b370
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], ecx
lea edx, [0x5f9e60]
mov dword [esp], edx
call fcn.0040b8d0
mov edi, dword [esp + 4]
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x7a0970]
test eax, eax
jne 0x516cab
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
lea eax, [0x60ef5d]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
call fcn.00448510
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x516ca1
mov dword [edx + 8], eax
mov dword [esp + 0xa0], 0
lea eax, [0x65ea14]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0048e8e0
mov byte [esp + 0x27], 0
call fcn.00518560
sub esp, 0xffffff80
ret
lea edi, [edx + 8]
call fcn.0045de10
jmp 0x516c63
mov eax, dword [esp + 0x4c]
call fcn.0045de10
jmp 0x516bfd
movzx eax, word [ecx + 2]
mov word [esp], ax
call fcn.0048f7a0
movzx eax, word [esp + 4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0048e8e0
mov byte [esp + 0x27], 0
call fcn.00518560
sub esp, 0xffffff80
ret
movzx eax, word [ecx + 2]
mov word [esp], ax
call fcn.0048f7a0
movzx eax, word [esp + 4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0048e8e0
mov byte [esp + 0x27], 0
call fcn.00518560
sub esp, 0xffffff80
ret
mov dword [esp], 0x20000027
call fcn.0048b370
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], ecx
lea edx, [0x5f9e60]
mov dword [esp], edx
call fcn.0040b8d0
mov edi, dword [esp + 4]
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x7a0970]
test eax, eax
jne 0x516e50
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
lea eax, [0x60ef5d]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
call fcn.00448510
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x516e46
mov dword [edx + 8], eax
mov dword [esp + 0xa0], 0
lea eax, [0x65ea14]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0048e8e0
mov byte [esp + 0x27], 0
call fcn.00518560
sub esp, 0xffffff80
ret
lea edi, [edx + 8]
call fcn.0045de10
jmp 0x516e08
mov eax, dword [esp + 0x4c]
call fcn.0045de10
jmp 0x516da2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x98]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0xc], ebx
call fcn.00515240
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x517079
mov eax, dword [esp + 0x40]
test eax, eax
je 0x517020
lea ecx, [0x5f4e00]
cmp dword [eax + 4], ecx
jne 0x517020
mov eax, dword [esp + 0x44]
cmp dword [eax], 0x2af9
jne 0x517020
mov eax, dword [0x783160]
mov ecx, dword [0x783164]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
mov edx, dword [eax + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], ecx
lea edx, [0x5f9e60]
mov dword [esp], edx
call fcn.0040b8d0
mov edi, dword [esp + 4]
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x7a0970]
test eax, eax
jne 0x517012
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
lea eax, [0x60ef5d]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
call fcn.00448510
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x517008
mov dword [edx + 8], eax
mov eax, dword [0x783164]
mov ecx, dword [esp + 0x2c]
cmp dword [0x783160], ecx
je 0x516fdb
mov dword [esp + 0xa0], 0
lea eax, [0x65ea14]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], edx
mov byte [esp + 0x27], 0
call fcn.00518560
sub esp, 0xffffff80
ret
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004037c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x517002
mov edx, dword [esp + 0x3c]
mov byte [edx + 0x1a], 1
jmp 0x516fae
mov edx, dword [esp + 0x3c]
jmp 0x516fae
lea edi, [edx + 8]
call fcn.0045de10
jmp 0x516f9c
mov eax, dword [esp + 0x4c]
call fcn.0045de10
jmp 0x516f36
nop
lea eax, [0x5eada0]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x6111a8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x517067
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
mov ecx, eax
lea eax, [0x65eb90]
jmp 0x516ee5
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045de10
mov eax, ecx
jmp 0x51705a
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov byte [esp + 0x27], 0
call fcn.00518560
sub esp, 0xffffff80
ret
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x60f3c9]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.004027b0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x5170fe
mov ecx, dword [esp + 0x90]
cmp dword [ecx], 0x34706374
jne 0x5170ea
mov ecx, 1
jmp 0x516afc
cmp dword [ecx], 0x36706374
je 0x5170e0
mov eax, dword [esp + 0x94]
jmp 0x516afa
mov ecx, dword [esp + 0x90]
cmp dword [ecx], 0x34706475
jne 0x517117
mov ecx, 2
jmp 0x516afc
cmp dword [ecx], 0x36706475
je 0x51710d
jmp 0x5170f2
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
call fcn.00515240
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
sub esp, 0xffffff80
ret
call fcn.0045c8b0
jmp fcn.00516a70