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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x518d99
sub esp, 0x5c
mov eax, 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
lea ebx, [0x89946a]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 7
call fcn.004a0180
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
lea ebx, [0x89799c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 5
call fcn.004a0180
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x518832
test eax, eax
jne 0x518881
lea eax, [0x826720]
mov dword [esp], eax
call fcn.00409d90
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x2a
mov eax, dword [0xc6f140]
test eax, eax
jne 0x518874
lea eax, [0x8af3d5]
mov dword [edi], eax
mov byte [esp + 0x74], 1
lea eax, [0x9218b0]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
add esp, 0x5c
ret
lea eax, [0x8af3d5]
call fcn.0044c860
jmp 0x51885d
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004a07f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [0x7e9560]
cmp eax, edx
jne 0x518d7e
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx]
jne 0x518d2f
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
call fcn.004a2ef0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x8969d1]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
call fcn.004c2de0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [ecx - 1]
cmp edx, ecx
jae 0x518d92
lea eax, [eax + ecx*8 - 8]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
lea edx, [0x80f360]
mov dword [esp], edx
mov edx, dword [0xc5bae0]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0040ea60
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [eax]
mov eax, dword [eax + 4]
test cl, cl
je 0x518cf9
test edx, edx
je 0x518cf2
mov ecx, dword [edx + 4]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x518ce9
lea ecx, [0x928080]
test ecx, ecx
je 0x518cd0
mov ecx, dword [ecx + 0x28]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004a4240
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x44], edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004a07f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [0x834380]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00407bf0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.004ed370
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x518cb7
mov dword [esp], 0
lea eax, [0x8969ea]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
call fcn.0043c0a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00518090
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
call fcn.004a2ef0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00518610
movzx eax, byte [esp + 8]
test al, al
je 0x518c72
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], ecx
call fcn.0051a7f0
mov eax, dword [esp + 0x64]
movzx ecx, byte [eax + 5]
test cl, cl
je 0x518c22
mov dword [esp], 0
lea eax, [0x896d95]
mov dword [esp + 4], eax
mov dword [esp + 8], 3
call fcn.0043c0a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00518090
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.0049fcc0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00518db0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x518c11
mov eax, dword [esp + 0x64]
movzx ecx, byte [eax + 5]
test cl, cl
je 0x518bc8
mov dword [esp], 0
lea eax, [0x896a61]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.0043c0a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00518090
mov byte [esp + 0x74], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x5c
ret
mov ecx, dword [eax]
dec ecx
mov dword [eax], ecx
mov dword [esp], 0
lea ecx, [0x896a63]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.0043c0a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00518090
jmp 0x518baf
mov byte [esp + 0x74], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x5c
ret
mov dword [esp], 0
lea eax, [0x897a1e]
mov dword [esp + 4], eax
mov dword [esp + 8], 5
call fcn.0043c0a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00518090
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
jmp 0x518b09
mov dword [esp], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
call fcn.0043c0a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00518090
jmp 0x518ab7
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x5c
ret
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x5c
ret
xor eax, eax
xor ecx, ecx
jmp 0x518982
mov ecx, edx
jmp 0x518968
lea eax, [0x80f860]
mov dword [esp], eax
mov eax, dword [0xc5badc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
call fcn.0040e700
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x518982
lea eax, [0x826720]
mov dword [esp], eax
call fcn.00409d90
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x2a
mov eax, dword [0xc6f140]
test eax, eax
jne 0x518d71
lea eax, [0x8af3d5]
mov dword [edi], eax
mov byte [esp + 0x74], 1
lea eax, [0x9218b0]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edi
add esp, 0x5c
ret
lea eax, [0x8af3d5]
call fcn.0044c860
jmp 0x518d5a
mov ecx, 0
mov edx, 0
mov eax, 0
jmp 0x5188af
call fcn.00426770
ud2
call fcn.0044b100
jmp fcn.00518780