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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x54], 0
lea eax, [esp + 0x124]
mov dword [esp + 0x34], edi
mov dword [esp + 0x118], eax
lea eax, [esp + 0xd8]
push eax
mov ecx, dword [edi + 0x8c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 8
mov dword [esp + 0xc0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0x40
call fcn.00401eab
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0x108]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0x100]
mov ebx, dword [esp + 0x104]
mov edi, dword [esp + 0x10c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x110]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x6c], esi
nop dword [eax]
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x80], ebx
jne 0x65f53f
cmp dword [esp + 0x7c], edx
jne 0x65f53f
cmp dword [esp + 0x78], ecx
jne 0x65f53f
cmp dword [esp + 0x74], eax
jne 0x65f53f
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x90], eax
jne 0x65f53f
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x8c], eax
jne 0x65f53f
cmp dword [esp + 0x88], edi
jne 0x65f53f
cmp dword [esp + 0x84], esi
je 0x65f714
lea ecx, [esp + 0x74]
mov dword [esp + 0x44], fcn.00403cce
mov dword [esp + 0x48], 0x410a5f
lea esi, [esp + 0x44]
mov dword [esp + 0x4c], 0x414e57
mov dword [esp + 0x50], 0x40d274
call fcn.00403cce
mov edi, eax
test edi, edi
jne 0x65f581
lea esi, [esi + 4]
lea ecx, [esp + 0x74]
call dword [esi]
mov edi, eax
test edi, edi
je 0x65f572
mov eax, dword [edi + 0xc]
shr eax, 0x1d
test al, 1
je 0x65f69f
lea eax, [esp + 0x94]
mov dword [esp + 0x11c], 0
push eax
mov ecx, edi
call fcn.00411d83
mov eax, dword [eax + 4]
inc eax
cmp dword [esp + 0x120], eax
jae 0x65f5cd
push 1
push eax
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x124]
call fcn.00405e1b
push 0
push edi
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0xbc]
call fcn.0040fbb9
mov ebx, dword [esp + 0x11c]
lea ecx, [esp + 0x54]
mov eax, dword [esp + 0x118]
push ebx
push eax
mov dword [esp + 0x40], eax
call fcn.0040dedb
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
lea esi, [ecx + eax*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x65f62c
cmp ecx, 0xfffffffc
je 0x65f628
test ecx, ecx
je 0x65f620
cmp ecx, 0xfffffffc
jne 0x65f696
mov ecx, dword [esi + 4]
add esi, 4
jmp 0x65f617
dec dword [esp + 0x60]
lea eax, [ebx + 9]
push 4
push eax
call fcn.0040d9e5
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [eax], ebx
lea ecx, [eax + 8]
mov dword [eax + 4], 0
mov dword [esp + 0x40], ecx
test ebx, ebx
je 0x65f668
push ebx
push dword [esp + 0x3c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x40]
push dword [esp + 0x30]
mov byte [ecx + ebx], 0
lea ecx, [esp + 0x58]
mov dword [esi], eax
inc dword [esp + 0x60]
call fcn.00410a46
mov ecx, dword [esp + 0x54]
lea esi, [ecx + eax*4]
mov eax, dword [esi]
test eax, eax
je 0x65f691
cmp eax, 0xfffffffc
jne 0x65f696
add esi, 4
jmp 0x65f686
mov eax, dword [esi]
mov ebx, dword [esp + 0x1c]
mov dword [eax + 4], edi
lea ecx, [esp + 0x74]
mov dword [esp + 0xa0], fcn.00402978
mov dword [esp + 0xa4], 0x406c17
lea esi, [esp + 0xa0]
mov dword [esp + 0xa8], 0x404b97
mov dword [esp + 0xac], 0x40240a
call fcn.00402978
mov ecx, dword [esp + 0x10]
test al, al
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
jne 0x65f4f0
mov eax, dword [esi + 4]
lea esi, [esi + 4]
lea ecx, [esp + 0x74]
call eax
test al, al
je 0x65f6f3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
jmp 0x65f4f0
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x6c]
push eax
lea ecx, [edi + 0xa8]
call fcn.0040af6f
mov ebx, dword [edi + 0xa8]
call fcn.0040fb50
mov ecx, dword [edi + 0xb4]
mov dl, al
shl ecx, 4
add ecx, ebx
mov byte [esp + 0xf], dl
test dl, dl
cmove ebx, ecx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x2c]
je 0x65fb79
nop
test dl, dl
je 0x65f76d
lea eax, [ebx - 0x10]
mov dword [esp + 0x18], eax
jmp 0x65f773
mov eax, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
xor esi, esi
push eax
mov ecx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x12], 0
call fcn.0040d2d3
lea ecx, [eax - 1]
cmp ecx, 5
ja case.0x65f794.2
jmp dword [ecx*4 + 0x65fc0c]
mov esi, 9
jmp 0x65f7a7
mov esi, 0x17
mov dword [esp + 0x10], esi
sub eax, 2
je 0x65f7ba
sub eax, 1
je 0x65f7ba
sub eax, 1
jne 0x65f7c2
mov al, 1
mov byte [esp + 0xe], al
jmp 0x65f7c6
mov al, byte [esp + 0xe]
test esi, esi
je 0x65f7d2
test al, al
jne 0x65f8b9
mov eax, dword [esp + 0x20]
test byte [eax], 4
jne 0x65f7e1
xor eax, eax
xor ecx, ecx
jmp 0x65f7e9
mov eax, dword [eax - 8]
mov ecx, dword [eax]
add eax, 8
push ecx
mov ecx, dword [edi + 0x8c]
push eax
call fcn.004090de
mov ecx, eax
test ecx, ecx
jne 0x65f844
mov eax, dword [esp + 0x20]
test byte [eax], 4
jne 0x65f809
xor eax, eax
jmp 0x65f811
mov eax, dword [eax - 8]
mov ecx, dword [eax]
add eax, 8
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.0040ee9e
cmp eax, 0xffffffff
je 0x65f8b9
mov ecx, dword [esp + 0x54]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x58]
lea eax, [ecx + eax*4]
cmp edx, eax
je 0x65f8b9
mov eax, dword [edx]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x65f8b9
test esi, esi
jne 0x65f894
mov eax, dword [ecx + 0x14]
and eax, 0xf
jne 0x65f85a
mov dword [esp + 0x10], 9
jmp 0x65f894
cmp eax, 7
je 0x65f88c
cmp eax, 8
je 0x65f88c
cmp eax, 4
je 0x65f882
cmp eax, 5
je 0x65f882
cmp eax, 2
je 0x65f882
cmp eax, 3
je 0x65f882
cmp eax, 0xa
je 0x65f882
cmp eax, 9
jne 0x65f894
mov dword [esp + 0x10], 0x17
jmp 0x65f894
mov dword [esp + 0x10], 0x10
cmp byte [esp + 0xe], 0
jne 0x65f8b4
mov eax, dword [ecx + 0x14]
and al, 0xf
cmp al, 1
je 0x65f8ad
call fcn.00402121
test al, al
je 0x65f8b4
mov byte [esp + 0xe], 0
jmp 0x65f8b9
mov byte [esp + 0xe], 1
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x65fb08
mov ebx, dword [esp + 0x34]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push 0
push 3
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
push 0x952ae4
mov dword [esp + 0x30], eax
call fcn.00415ebf
mov dword [esp + 0x40], eax
cmp eax, 0xffffffff
jne 0x65f918
mov eax, dword [esp + 0x24]
xor edi, edi
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
jmp 0x65f992
mov edi, dword [esp + 0x28]
lea esi, [eax + 3]
cmp edi, esi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
cmovb esi, edi
mov ebx, dword [esp + 0x34]
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], edx
cmovae ecx, eax
lea eax, [esp + 0x28]
cmp edi, dword [ecx]
cmovae eax, ecx
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
sub eax, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
cmove ecx, eax
lea eax, [esp + 0x28]
cmp edi, dword [ecx]
lea edi, [esi + edx]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
cmovae eax, ecx
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
lea eax, [esp + 0x174]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], 0x80
test edx, edx
je 0x65fa68
cmp edx, 1
jb 0x65f9e3
push 1
push 0x92d314
push edi
call fcn.004031ed
add esp, 0xc
test eax, eax
je 0x65fa68
cmp byte [esp + 0xe], 0
mov ecx, 0x92d314
mov eax, 0x952ae8
mov word [esp + 0xa8], 0x105
cmove eax, ecx
mov word [esp + 0x9c], 0x305
mov dword [esp + 0x98], eax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x94]
mov dword [esp + 0x94], ecx
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0xc0]
lea eax, [esp + 0x4c]
mov word [esp + 0xc8], 0x502
mov dword [esp + 0xc4], eax
lea eax, [esp + 0x168]
push eax
call fcn.0041291d
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x24]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xcc]
push eax
mov word [esp + 0xd8], 0x105
call fcn.00403d5a
push 0
push dword [ebx + 4]
mov edi, eax
push 0
push dword [esp + 0x2c]
call fcn.0040d0f8
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp byte [esp + 0xe], 0
je 0x65fab9
push edi
mov ecx, ebx
call fcn.0040abaf
mov eax, dword [esp + 0x1c]
push eax
push edi
mov ecx, ebx
call fcn.00415b95
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x65fad3
mov eax, dword [ebx]
push ecx
push edi
mov ecx, ebx
call dword [eax + 0x7c]
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0x174]
cmp eax, ecx
je 0x65faef
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
add esi, 8
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x38]
jne 0x65f8d7
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
cmp byte [esp + 0xf], 0
mov edx, dword [esp + 0x70]
je 0x65fb3e
sub ebx, 0x10
mov dword [esp + 0x14], ebx
cmp ebx, edx
je 0x65fb6b
nop
mov eax, dword [ebx - 0x10]
cmp eax, 0xfffff000
je 0x65fb31
cmp eax, 0xffffe000
jne 0x65fb6b
add ebx, 0xfffffff0
mov dword [esp + 0x14], ebx
cmp ebx, edx
jne 0x65fb20
jmp 0x65fb6b
add ebx, 0x10
mov dword [esp + 0x14], ebx
cmp ebx, edx
je 0x65fb6b
nop dword [eax]
mov eax, dword [ebx]
cmp eax, 0xfffff000
je 0x65fb60
cmp eax, 0xffffe000
jne 0x65fb67
add ebx, 0x10
cmp ebx, edx
jne 0x65fb50
mov dword [esp + 0x14], ebx
mov dl, byte [esp + 0xf]
cmp ebx, dword [esp + 0x2c]
jne 0x65f760
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x124]
cmp eax, ecx
je 0x65fb95
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0xbc]
push 4
shl eax, 3
push eax
push dword [esp + 0xb8]
call fcn.00415398
add esp, 0xc
cmp dword [esp + 0x5c], 0
je 0x65fbe8
mov edi, dword [esp + 0x58]
xor esi, esi
test edi, edi
je 0x65fbe8
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x65fbe3
cmp ecx, 0xfffffffc
je 0x65fbe3
mov eax, dword [ecx]
push 4
add eax, 9
push eax
push ecx
call fcn.00415398
add esp, 0xc
inc esi
cmp esi, edi
jne 0x65fbc2
push dword [esp + 0x54]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x200]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
mov esp, ebp
pop ebp
ret