Function at 0x4064d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0xc8], eax
mov bl, 1
push 0x64c0e8
call fcn.0051beb0
add esp, 4
test al, al
je 0x4065c2
mov ebx, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
jne 0x4065da
push 4
call fcn.0057dc30
add esp, 4
mov edi, eax
mov dword [eax], 6
xor eax, eax
dec eax
lea ecx, [esp + 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov edx, ebx
call fcn.004437a0
xor esi, esi
lea eax, [esp + 0x18]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea ebx, [esp + 0x70]
mov dword [esp + 4], edi
jmp 0x406784
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
push eax
call fcn.0057dc2b
add esp, 4
mov edi, dword [esp + 4]
mov edx, ebx
cmp byte [esp + 0x2f], 0
jns 0x406580
push dword [esp + 0x24]
call fcn.0057dc2b
mov edx, ebx
add esp, 4
test edi, edi
je 0x4065a6
mov eax, 4
test eax, eax
je 0x40659b
add eax, 0xfffffffc
mov ecx, edi
add ecx, eax
jne 0x406589
jmp 0x406ada
push edi
call fcn.0057dc2b
mov edx, ebx
add esp, 4
test dl, dl
mov ebx, dword [ebp + 8]
je 0x4065da
xor ebx, ebx
jmp 0x4065c2
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], esi
push eax
call fcn.0057dc2b
add esp, 4
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
lea eax, [esp + 0xb8]
mov byte [eax + 0xb], 2
cmp eax, 0x63525c
ja 0x406608
lea eax, [esp + 0xbc]
cmp eax, 0x63525c
ja 0x406aec
mov dword [esp + 0xb8], 0x440057
mov word [esp + 0xbc], 0
push 0xc
call fcn.0057dc30
add esp, 4
mov dword [esp + 0x40], eax
lea ecx, [eax + 0xc]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x406ae6
mov edx, dword [esp + 0xc0]
mov dword [eax + 8], edx
movsd xmm0, qword [esp + 0xb8]
movsd qword [eax], xmm0
lea esi, [esp + 0x40]
mov dword [esi + 4], ecx
lea eax, [esp + 0x70]
push esi
push eax
call fcn.00451510
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4066ab
mov edi, dword [esp + 0x44]
mov eax, esi
cmp edi, esi
je 0x40669e
add edi, 0xfffffff4
test edi, edi
je 0x406ae0
cmp byte [edi + 0xb], 0
jns 0x406691
push dword [edi]
call fcn.0057dc2b
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
jne 0x406679
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], esi
push eax
call fcn.0057dc2b
add esp, 4
cmp byte [esp + 0xc3], 0
jns 0x4066c4
push dword [esp + 0xb8]
call fcn.0057dc2b
add esp, 4
cmp byte [esp + 0x7c], 0
je 0x406ae9
sub esp, 0x10
movdqa xmm0, xmmword [0x635170]
movdqu xmmword [esp], xmm0
lea esi, [esp + 0x80]
mov ecx, ebx
mov edx, esi
call fcn.00441260
add esp, 0x10
mov ebx, eax
cmp byte [esi + 0xc], 0
je 0x4065c2
mov esi, dword [esp + 0x70]
test esi, esi
je 0x4065c2
mov edi, dword [esp + 0x74]
mov eax, esi
cmp edi, esi
je 0x4065b5
add edi, 0xfffffff4
jmp 0x406736
mov dword [edi + 4], eax
push eax
call fcn.0057dc2b
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
je 0x4065b1
test edi, edi
je 0x406ad7
mov eax, dword [edi]
test eax, eax
je 0x406729
mov ecx, dword [edi + 4]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
jbe 0x40671d
jmp 0x406ae3
lea ecx, [esp + 0x18]
push ebx
call fcn.004665f0
mov edi, eax
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 4]
cmp byte [esp + 0x7b], 0
jns 0x40677c
push dword [esp + 0x70]
call fcn.0057dc2b
add esp, 4
add esi, 4
cmp esi, 4
je 0x4067e7
mov eax, dword [edi + esi]
pxor xmm0, xmm0
movq qword [esp + 0x70], xmm0
mov dword [esp + 0x78], 0
push ebx
push eax
call fcn.0056d000
add esp, 8
test al, al
je 0x406769
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
jae 0x406755
test edi, edi
je 0x406add
cmp byte [esp + 0x7b], 0
jns 0x4067d4
mov ecx, edi
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.00556f30
add edi, 0xc
jmp 0x406761
mov eax, dword [esp + 0x78]
mov dword [edi + 8], eax
movq xmm0, qword [esp + 0x70]
movq qword [edi], xmm0
jmp 0x4067cf
pxor xmm0, xmm0
movq qword [esp + 8], xmm0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4069da
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x40]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
push 0x2d5
push str.file_util_win.cc
push str.GetSecureSystemTemp
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0xb4], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x406bde
pxor xmm0, xmm0
lea eax, [esp + 0x30]
movq qword [eax], xmm0
mov dword [eax + 8], 0
push eax
push 0x65
call fcn.0056d000
add esp, 8
test al, al
je 0x406aef
lea esi, [esp + 0x30]
mov ecx, esi
push 0xa
push str.SystemTemp
push ebx
call fcn.004176f0
cmp byte [esi + 0xb], 0
jns 0x4068a3
push dword [esp + 0x30]
call fcn.0057dc2b
add esp, 4
lea edi, [esp + 0x70]
mov eax, dword [edi + 8]
mov dword [esp + 0x38], eax
movq xmm0, qword [edi]
movq qword [esp + 0x30], xmm0
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0xb8]
push 0x227
push str.file_util_win.cc
push str.PathExists
push ebx
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0xac], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x406c0a
cmp byte [esp + 0x3b], 0
jns 0x406917
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x70]
call fcn.00545870
cmp esi, 0xffffffff
je 0x406aef
lea ecx, [esp + 0x30]
call fcn.00466380
test al, al
je 0x406aef
cmp byte [esp + 0x13], 0
movzx eax, byte [esp + 0x3b]
js 0x406ab4
test al, al
jns 0x4069b1
lea ecx, [esp + 8]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.00539670
cmp byte [esp + 0x3b], 0
jns 0x40697b
push dword [esp + 0x30]
call fcn.0057dc2b
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00545870
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
jae 0x4069e0
test esi, esi
je 0x406bdb
cmp byte [esp + 0x13], 0
jns 0x4069c7
mov ecx, esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00556f30
add esi, 0xc
jmp 0x4069f0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 8], xmm0
jmp 0x40697b
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], ecx
movq xmm0, qword [esp + 8]
movq qword [esi], xmm0
jmp 0x4069ac
mov esi, dword [esp + 0x1c]
jmp 0x4069f4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.004665f0
mov esi, eax
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x18]
cmp edi, esi
jne 0x406a1f
mov dl, 1
jmp 0x406a57
push dword [esp + 0x70]
mov ebx, edx
call fcn.0057dc2b
mov edx, ebx
add esp, 4
add edi, 0xc
cmp edi, esi
sete cl
or cl, dl
cmp cl, 1
je 0x406a54
xor eax, eax
dec eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea ebx, [esp + 0x70]
mov ecx, ebx
mov edx, edi
call fcn.004437a0
mov ecx, ebx
push 0
lea eax, [esp + 0x28]
push eax
call fcn.00412940
mov edx, eax
cmp byte [esp + 0x7b], 0
js 0x406a00
jmp 0x406a10
xor dl, 1
cmp byte [esp + 0x13], 0
mov edi, dword [esp + 4]
mov ebx, edx
jns 0x406a72
push dword [esp + 8]
call fcn.0057dc2b
mov edx, ebx
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40656b
mov edi, dword [esp + 0x1c]
mov eax, esi
cmp edi, esi
je 0x406558
add edi, 0xfffffff4
jmp 0x406aa8
push dword [edi]
call fcn.0057dc2b
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
je 0x406554
test edi, edi
je 0x406ad4
cmp byte [edi + 0xb], 0
js 0x406a91
jmp 0x406a9b
test al, al
cmovs eax, dword [esp + 0x34]
lea edx, [esp + 0x30]
cmovs edx, dword [esp + 0x30]
lea ecx, [esp + 8]
push eax
push edx
call fcn.00406c70
jmp 0x406968
int3
int3
int3
int3
int3
int3
int3
int3
int3
cmp byte [esp + 0x3b], 0
jns 0x406b02
push dword [esp + 0x30]
call fcn.0057dc2b
add esp, 4
pxor xmm0, xmm0
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x30]
push eax
push 0x67
call fcn.0056d000
add esp, 8
test al, al
je 0x406bba
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x70]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0xb8]
push 0x227
push str.file_util_win.cc
push str.PathExists
push edi
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00536a30
mov dword [esp + 0xac], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x406c39
cmp byte [esp + 0x3b], 0
lea eax, [esp + 0x30]
jns 0x406b92
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x70]
call fcn.00545870
cmp esi, 0xffffffff
je 0x406bba
lea ecx, [esp + 0x30]
call fcn.00466380
test al, al
jne 0x406943
cmp byte [esp + 0x3b], 0
jns 0x406bcd
push dword [esp + 0x30]
call fcn.0057dc2b
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00545870
jmp 0x4069da
int3
movzx ecx, al
lea eax, [esp + 0xb8]
mov dword [eax], ebx
lea esi, [esp + 0x30]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0xb4]
push eax
push esi
call fcn.005da0b0
add esp, 8
jmp 0x406858
movzx ecx, al
lea eax, [esp + 0xb4]
mov dword [eax], ebx
lea edi, [esp + 0xb0]
mov dword [edi], str.ScopedBlockingCall
lea edx, [esp + 0xac]
push eax
push edi
call fcn.005da0b0
add esp, 8
jmp 0x40690c
movzx ecx, al
lea eax, [esp + 0xb4]
mov dword [eax], edi
lea esi, [esp + 0xb0]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0xac]
push eax
push esi
call fcn.005da0b0
add esp, 8
jmp 0x406b83