Function at 0x65b900
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7486af
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x288], edx
mov eax, ecx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2a4], eax
push edx
mov dword [ebp - 0x264], 0
call fcn.00449230
mov dword [ebp - 4], 0
mov edi, 1
push ecx
mov ecx, dword [ebp - 0x26c]
mov edx, esi
mov dword [ebp - 0x264], edi
call fcn.00651b80
xor eax, eax
mov dword [ebp - 0x238], 0
add esp, 4
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call fcn.00449230
push ecx
push str..__
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00545670
mov esi, eax
cmp esi, 0xffffffff
je 0x65bac6
xor eax, eax
mov dword [ebp - 0x274], 0
mov word [ebp - 0x284], ax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x270], 7
cmp eax, esi
jb 0x65bdc7
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x284]
lea eax, [eax + esi*2]
push eax
call fcn.00426d40
mov edi, 3
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x264], edi
call fcn.00426ce0
movups xmm0, xmmword [ebp - 0x284]
xor eax, eax
lea ecx, [ebp - 0x284]
mov word [ebp - 0x284], ax
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [ebp - 0x274]
movq qword [ebp - 0x238], xmm0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
call fcn.00426ce0
cmp dword [ebp - 0x220], esi
jb 0x65bdc7
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], esi
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x268], 1
nop word [eax + eax]
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x26c], edi
jb 0x65baf0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x65bd91
mov eax, dword [ebp - 0x268]
cmp eax, 0x7fffffff
je 0x65bd91
push eax
push 0x805c78
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.004b21c0
add esp, 0x10
mov dword [ebp - 0x274], 0
xor eax, eax
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x65bb50
sub eax, edx
lea ecx, [ebp - 0x284]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00426d40
or edi, 4
mov dword [ebp - 0x264], edi
push 0x78f29c
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.0048f950
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 4
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp dword [ebp - 0x274], eax
jbe 0x65bbd8
mov eax, dword [ebp - 0x270]
sub eax, dword [ebp - 0x274]
cmp eax, edx
jb 0x65bbd8
cmp dword [ecx + 0x14], 8
jb 0x65bbc8
mov ecx, dword [ecx]
push edx
push ecx
push ecx
lea ecx, [ebp - 0x284]
call fcn.005133a0
jmp 0x65bbf8
cmp dword [ebp - 0x270], 8
lea eax, [ebp - 0x284]
push dword [ebp - 0x274]
cmovae eax, dword [ebp - 0x284]
push eax
call fcn.0044a2e0
mov dword [ebp - 0x290], 0
xor ecx, ecx
mov dword [ebp - 0x28c], 0
or edi, 8
movups xmm0, xmmword [eax]
mov dword [ebp - 0x264], edi
movups xmmword [ebp - 0x2a0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x290], xmm0
mov word [eax], cx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
push 1
push 0x78f2a0
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 5
call fcn.0044a2e0
mov edi, dword [ebp - 0x26c]
xor ecx, ecx
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2bc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2ac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, edi
or eax, 0x1c
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x2bc]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.0044a2e0
mov dword [ebp - 0x250], 0
xor ecx, ecx
mov dword [ebp - 0x24c], 0
or edi, 0x3c
mov dword [ebp - 0x264], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x250], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2bc]
call fcn.00426ce0
lea ecx, [ebp - 0x2a0]
call fcn.00426ce0
lea ecx, [ebp - 0x2d4]
call fcn.00426ce0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xb
call fcn.00426ce0
mov eax, dword [ebp - 0x288]
cmp esi, eax
je 0x65bd60
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x65bd55
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00426d40
push ecx
lea edx, [ebp - 0x260]
mov ecx, esi
call fcn.00651b80
inc dword [ebp - 0x268]
lea ecx, [ebp - 0x260]
add esp, 4
mov byte [ebp - 4], 2
call fcn.00426ce0
mov dword [ebp - 0x264], edi
jmp 0x65bae0
lea ecx, [ebp - 0x230]
call fcn.00426ce0
lea ecx, [ebp - 0x248]
call fcn.00426ce0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0044b3c0
int3