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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x6410ca
sub esp, 0x8c
lea edi, [esp + 0x94]
xor eax, eax
call fcn.004690f3
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x4c], ebx
lea ebp, [0x6fee00]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00409e40
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x90]
lea ebx, [edx + 0x4c]
mov dword [esp + 0x74], ebx
mov dword [esp], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xa
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 0xa
call fcn.004977b0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x6410ad
mov ecx, dword [esp + 0x90]
cmp byte [ecx + 0x4c], 0x1f
jne 0x640a52
cmp byte [ecx + 0x4d], 0x8b
jne 0x640a52
cmp byte [ecx + 0x4e], 8
je 0x640a73
mov eax, dword [0x967428]
mov ecx, dword [0x96742c]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
mov edx, dword [ecx + 0x50]
movzx ebx, byte [ecx + 0x4f]
mov byte [esp + 0x27], bl
test edx, edx
je 0x640ad0
lea edi, [esp + 0x78]
xor eax, eax
call fcn.004690fb
mov dword [esp + 0x7c], 0
add edx, 0x7791f700
mov dword [esp + 0x80], edx
adc eax, 0xe
mov dword [esp + 0x84], eax
mov ecx, dword [0x966a04]
mov dword [esp + 0x88], ecx
lea edi, [esp + 0xa8]
lea esi, [esp + 0x78]
call fcn.004695de
mov ecx, dword [esp + 0x90]
movzx eax, byte [ecx + 0x55]
mov byte [esp + 0xc4], al
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], 0xa
mov dword [esp + 8], 0x200
call fcn.00640160
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x90]
mov dword [ecx + 0x44], eax
movzx eax, byte [esp + 0x27]
test al, 4
je 0x640d60
mov eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x48], edx
lea ebx, [0x6fee00]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00409e40
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 2
call fcn.004977b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x640bd1
mov edx, dword [esp + 0x1c]
cmp dword [0x967010], edx
jne 0x640bbc
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [0x967014]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x640bb4
mov eax, dword [0x967018]
mov ecx, dword [0x96701c]
jmp 0x640bbc
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
mov eax, dword [0x96e9c8]
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
mov byte [esp + 0x14], 1
call fcn.00640050
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x90]
mov dword [ecx + 0x44], eax
movzx eax, word [ecx + 0x4c]
mov dword [esp + 0x3c], eax
lea edx, [0x6f4820]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x44], ebx
lea ebp, [0x6fee00]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00409e40
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004977b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x640cfb
mov edx, dword [esp + 0x1c]
cmp dword [0x967010], edx
jne 0x640ce6
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [0x967014]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x640cde
mov eax, dword [0x967018]
mov ecx, dword [0x96701c]
jmp 0x640ce6
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
mov eax, dword [0x96e9c8]
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov byte [esp + 0x14], 1
call fcn.00640050
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x90]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
movzx eax, byte [esp + 0x27]
test al, 8
je 0x640e01
mov dword [esp], ecx
call fcn.00640760
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x640ddf
mov edx, dword [esp + 0xc]
cmp dword [0x967010], edx
jne 0x640dca
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [0x967014]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x640dc2
mov eax, dword [0x967018]
mov ecx, dword [0x96701c]
jmp 0x640dca
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
movzx eax, byte [esp + 0x27]
mov ecx, dword [esp + 0x90]
test al, 0x10
je 0x640ea2
mov dword [esp], ecx
call fcn.00640760
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x640e80
mov edx, dword [esp + 0xc]
cmp dword [0x967010], edx
jne 0x640e6b
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [0x967014]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x640e63
mov eax, dword [0x967018]
mov ecx, dword [0x96701c]
jmp 0x640e6b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
movzx eax, byte [esp + 0x27]
mov ecx, dword [esp + 0x90]
test al, 2
je 0x640f80
mov eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x40], edx
lea ebx, [0x6fee00]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00409e40
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 2
call fcn.004977b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x640f69
mov edx, dword [esp + 0x1c]
cmp dword [0x967010], edx
jne 0x640f54
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [0x967014]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404290
movzx eax, byte [esp + 0xc]
test al, al
je 0x640f4c
mov eax, dword [0x967018]
mov ecx, dword [0x96701c]
jmp 0x640f54
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x44]
nop
cmp word [eax + 0x4c], cx
jne 0x64108c
mov ecx, eax
mov dword [ecx + 0x44], 0
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x641013
mov eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x6c], edx
lea ebx, [0x6fee00]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00409e40
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x68], eax
mov edx, dword [esp + 8]
mov dword [esp + 0x64], edx
lea ebx, [0x6ff6a0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00409ea0
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call eax
jmp 0x64106f
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x6c], eax
mov edx, dword [ecx + 0x34]
lea ebx, [0x6fee00]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.00409e40
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.0063f780
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x90]
mov dword [edx + 0x3c], eax
mov eax, dword [0x995310]
test eax, eax
je 0x64106c
call fcn.00468e70
mov dword [edi], ecx
mov eax, dword [edx + 0x40]
mov dword [edi + 4], eax
mov dword [edx + 0x40], ecx
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
add esp, 0x8c
ret
mov eax, dword [0x967428]
mov ecx, dword [0x96742c]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0x8c
ret
call fcn.00467a60
jmp fcn.006409a0