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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x665e72
sub esp, 0x58
mov eax, 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov dword [edx + 0xc], ecx
mov ebx, dword [0xa8f2d0]
test ebx, ebx
jne 0x665dfb
mov ebx, dword [esp + 0x70]
mov dword [edx + 0x10], ebx
test ecx, ecx
je 0x665df4
mov ebp, dword [ecx + 8]
cmp ebp, 0x8e6cd13b
ja 0x665aec
cmp ebp, 0x4f130308
ja 0x665a03
cmp ebp, 0xfa45894
jne 0x6659f6
lea eax, [0x8012c0]
cmp eax, ecx
jne 0x6659ea
mov esi, ebx
je 0x66596c
cmp ebp, 0x4f130308
jne 0x665966
lea eax, [0x801400]
cmp eax, ecx
jne 0x66595d
mov eax, esi
jne 0x66594d
mov dword [esp], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
call fcn.006608f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
test ecx, ecx
je 0x665e0e
mov ecx, dword [ecx + 4]
jmp 0x665e0e
mov eax, esi
mov esi, 0
jmp 0x66590b
test ecx, ecx
mov eax, esi
jmp 0x66594f
mov dword [esp], edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [0xa7d82c]
mov ecx, dword [0xa7d828]
mov edx, dword [0xa7d830]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call fcn.006620b0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
mov esi, ebx
mov ebx, 0
jmp 0x6658f5
cmp ebp, 0x4f130308
mov esi, ebx
jmp 0x6658fd
cmp ebp, 0x7a206bd0
jne 0x665adf
lea eax, [0x801540]
cmp eax, ecx
jne 0x665ad3
mov eax, ebx
je 0x665a5d
cmp ebp, 0x8e6cd13b
jne 0x665a56
lea ebx, [0x801240]
cmp ebx, ecx
jne 0x665a4f
mov eax, dword [esp + 0x60]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
test ecx, ecx
jmp 0x66594f
test ecx, ecx
jmp 0x66594f
mov dword [esp], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [0xa7d830]
mov ecx, dword [0xa7d82c]
mov edx, dword [0xa7d828]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
call fcn.00661c80
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
add esp, 0x58
ret
mov eax, ebx
mov ebx, 0
jmp 0x665a1f
cmp ebp, 0x8e6cd13b
mov eax, ebx
jmp 0x665a27
cmp ebp, 0xc80c953b
ja 0x665c2d
cmp ebp, 0xa41916b6
jne 0x665c20
lea eax, [0x8013c0]
cmp eax, ecx
jne 0x665c14
mov eax, ebx
je 0x665bec
cmp ebp, 0xc80c953b
jne 0x665be6
lea ebx, [0x801480]
cmp ebx, ecx
jne 0x665bda
mov ebx, eax
jne 0x665bd1
test byte [eax], al
add eax, 0x14
mov dword [esp + 4], eax
lea eax, [0x730dc0]
mov dword [esp], eax
call fcn.00407570
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x665bc9
movzx edx, byte [0xa7d7a8]
test dl, dl
je 0x665b80
mov dword [0xa7d7ac], ecx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x665bbc
mov dword [0xa7d7b0], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x665bb4
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x665ba4
or edx, 0x80
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
add esp, 0x58
ret
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x665ba4
lea edi, [0xa7d7b0]
call fcn.0044c9e0
jmp 0x665b80
xor ecx, ecx
xor edx, edx
xor eax, eax
jmp 0x665ba4
test ecx, ecx
mov eax, ebx
jmp 0x66594f
mov ebx, eax
mov eax, 0
jmp 0x665b36
test ecx, ecx
mov ebx, eax
jmp 0x665bd3
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00661560
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
add esp, 0x58
ret
mov eax, ebx
mov ebx, 0
jmp 0x665b14
cmp ebp, 0xc80c953b
mov eax, ebx
jmp 0x665b20
cmp ebp, 0xe4047a14
jne 0x665ded
lea esi, [0x801280]
cmp esi, ecx
jne 0x665de1
mov eax, ebx
je 0x665d6b
cmp ebp, 0xee1b4e4a
jne 0x665d67
lea ebx, [0x801140]
cmp ebx, ecx
jne 0x665d5b
mov ebx, eax
jne 0x665cf6
movzx ecx, byte [eax + 0xc]
lea edx, [0xa3e800]
lea eax, [edx + ecx]
movzx ecx, byte [0xa7d7a8]
test cl, cl
je 0x665cee
lea ecx, [0x72d000]
mov dword [0xa7d7ac], ecx
mov edx, dword [0xa8f2d0]
test edx, edx
jne 0x665ce1
mov dword [0xa7d7b0], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x665cd9
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x665cc9
or edx, 0x80
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
add esp, 0x58
ret
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x665cc9
lea edi, [0xa7d7b0]
call fcn.0044c9e0
jmp 0x665ca5
lea ecx, [0x72d000]
jmp 0x665ca5
cmp ebp, 0xf46e0b19
jne 0x665d54
lea eax, [0x801380]
cmp eax, ecx
jne 0x665d4d
mov dword [esp], edx
lea eax, [0x7a2c12]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x26
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0065e7d0
mov ecx, dword [esp + 0x6c]
test ecx, ecx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
jmp 0x66594f
test ecx, ecx
jmp 0x665bd3
test ecx, ecx
jmp 0x665bd3
mov ebx, eax
mov eax, 0
jmp 0x665c6b
mov ebx, eax
jmp 0x665cf6
mov dword [esp], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [0xa7d830]
mov ecx, dword [0xa7d82c]
mov edx, dword [0xa7d828]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
call fcn.00661960
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x58
ret
mov eax, ebx
mov ebx, 0
jmp 0x665c49
mov eax, ebx
jmp 0x665c4f
mov eax, ebx
jmp 0x66594f
lea edi, [edx + 0x10]
mov eax, dword [esp + 0x70]
call fcn.0044c9e0
mov ebx, eax
jmp 0x6658b6
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp], edx
lea eax, [0x7a8869]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x39
lea eax, [esp + 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
call fcn.0065e7d0
lea eax, [0x730dc0]
mov dword [esp], eax
lea eax, [0x7fd538]
mov dword [esp + 4], eax
call fcn.004275c0
ud2
call fcn.0044b280
jmp fcn.00665870