Function at 0x407830
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 [0x644040]
xor eax, ebp
mov dword [esp + 0xc8], eax
mov bl, 1
push 0x6460fc
call fcn.0050a840
add esp, 4
test al, al
je 0x407d7b
mov ebx, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
jne 0x407c2a
push 4
call fcn.00562f65
add esp, 4
mov esi, 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.00459000
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esi]
lea ebx, [esp + 0x70]
mov dword [ebx + 8], eax
pxor xmm0, xmm0
movq qword [ebx], xmm0
push ebx
push ecx
call fcn.00440fe0
add esp, 8
test al, al
je 0x40791a
mov edi, esi
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
jae 0x407908
test esi, esi
je 0x407ee2
cmp byte [esp + 0x7b], 0
jns 0x4078f5
mov ecx, esi
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.00543180
add esi, 0xc
jmp 0x407914
mov eax, dword [esp + 0x78]
mov dword [esi + 8], eax
movq xmm0, qword [esp + 0x70]
movq qword [esi], xmm0
jmp 0x4078f0
lea ecx, [esp + 0x18]
push ebx
call fcn.00459180
mov esi, eax
mov dword [esp + 0x1c], esi
mov esi, edi
cmp byte [esp + 0x7b], 0
jns 0x40792d
push dword [esp + 0x70]
call fcn.00562f60
add esp, 4
pxor xmm0, xmm0
movq qword [esp + 8], xmm0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov dword [esp + 4], esi
je 0x407b24
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x40]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
push 0x2da
push str.file_util_win.cc
push str.GetSecureSystemTemp
push ebx
call fcn.0050b5e0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.005224f0
mov dword [esp + 0xb4], 0xa
mov al, byte [0x649456]
test al, al
jne 0x407ee5
pxor xmm0, xmm0
lea eax, [esp + 0x30]
movq qword [eax], xmm0
mov dword [eax + 8], 0
push eax
push 0x65
call fcn.00440fe0
add esp, 8
test al, al
je 0x407df3
lea edi, [esp + 0x30]
mov ecx, edi
push 0xa
push str.SystemTemp
push ebx
call fcn.00415fb0
cmp byte [edi + 0xb], 0
jns 0x4079ed
push dword [esp + 0x30]
call fcn.00562f60
add esp, 4
lea esi, [esp + 0x70]
mov eax, dword [esi + 8]
mov dword [esp + 0x38], eax
movq xmm0, qword [esi]
movq qword [esp + 0x30], xmm0
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0xb8]
push 0x22c
push str.file_util_win.cc
push str.PathExists
push ebx
call fcn.0050b5e0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.005224f0
mov dword [esp + 0xac], 0xa
mov al, byte [0x649456]
test al, al
jne 0x407f11
cmp byte [esp + 0x3b], 0
jns 0x407a61
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x70]
call fcn.005403a0
cmp esi, 0xffffffff
je 0x407df3
lea ecx, [esp + 0x30]
call fcn.00458e60
test al, al
je 0x407df3
cmp byte [esp + 0x13], 0
movzx eax, byte [esp + 0x3b]
js 0x407dc1
test al, al
jns 0x407afb
lea ecx, [esp + 8]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.0052b5a0
cmp byte [esp + 0x3b], 0
jns 0x407ac5
push dword [esp + 0x30]
call fcn.00562f60
add esp, 4
lea ecx, [esp + 0x40]
call fcn.005403a0
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
jae 0x407b2a
test edi, edi
je 0x407edf
cmp byte [esp + 0x13], 0
jns 0x407b11
mov ecx, edi
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00543180
add edi, 0xc
jmp 0x407b3a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
movq xmm0, qword [esp + 0x30]
movq qword [esp + 8], xmm0
jmp 0x407ac5
mov ecx, dword [esp + 0x10]
mov dword [edi + 8], ecx
movq xmm0, qword [esp + 8]
movq qword [edi], xmm0
jmp 0x407af6
mov edi, dword [esp + 0x1c]
jmp 0x407b3e
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.00459180
mov edi, eax
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x18]
cmp esi, edi
jne 0x407b65
mov bl, 1
jmp 0x407b9d
push dword [esp + 0x70]
call fcn.00562f60
add esp, 4
add esi, 0xc
cmp esi, edi
sete cl
or cl, bl
cmp cl, 1
je 0x407b9a
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, esi
call fcn.00459000
mov ecx, ebx
push 0
lea eax, [esp + 0x28]
push eax
call fcn.00411d40
mov ebx, eax
cmp byte [esp + 0x7b], 0
js 0x407b4a
jmp 0x407b56
xor bl, 1
cmp byte [esp + 0x13], 0
jns 0x407bb0
push dword [esp + 8]
call fcn.00562f60
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x407bfb
mov edi, dword [esp + 0x1c]
mov eax, esi
cmp edi, esi
je 0x407bee
add edi, 0xfffffff4
jmp 0x407bda
push dword [edi]
call fcn.00562f60
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
je 0x407bea
test edi, edi
je 0x407de1
cmp byte [edi + 0xb], 0
js 0x407bc7
jmp 0x407bd1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
push eax
call fcn.00562f60
add esp, 4
cmp byte [esp + 0x2f], 0
jns 0x407c0e
push dword [esp + 0x24]
call fcn.00562f60
add esp, 4
mov eax, dword [esp + 4]
test eax, eax
je 0x407c1f
push eax
call fcn.00562f60
add esp, 4
test bl, bl
mov ebx, dword [ebp + 8]
jne 0x407d79
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
lea eax, [esp + 0xbc]
mov byte [eax + 7], 2
mov ecx, 0x62e49c
lea edx, [esp + 0xb8]
cmp edx, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x407dea
mov dword [esp + 0xb8], 0x440057
mov word [esp + 0xbc], 0
push 0xc
call fcn.00562f65
add esp, 4
mov dword [esp + 0x40], eax
lea ecx, [eax + 0xc]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x407ded
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.00449bb0
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x407d00
mov edi, dword [esp + 0x44]
mov eax, esi
cmp edi, esi
je 0x407cf3
add edi, 0xfffffff4
test edi, edi
je 0x407de7
cmp byte [edi + 0xb], 0
jns 0x407ce6
push dword [edi]
call fcn.00562f60
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
jne 0x407cce
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], esi
push eax
call fcn.00562f60
add esp, 4
cmp byte [esp + 0xc3], 0
jns 0x407d19
push dword [esp + 0xb8]
call fcn.00562f60
add esp, 4
cmp byte [esp + 0x7c], 0
je 0x407df0
sub esp, 0x10
movdqa xmm0, xmmword [0x62e3b0]
movdqu xmmword [esp], xmm0
lea esi, [esp + 0x80]
mov ecx, ebx
mov edx, esi
call fcn.0042b690
add esp, 0x10
mov ebx, eax
cmp byte [esi + 0xc], 1
jne 0x407d7b
mov esi, dword [esp + 0x70]
test esi, esi
je 0x407d7b
mov edi, dword [esp + 0x74]
mov eax, esi
cmp edi, esi
je 0x407d6a
add edi, 0xfffffff4
jmp 0x407da8
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], esi
push eax
call fcn.00562f60
add esp, 4
jmp 0x407d7b
xor ebx, ebx
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.00566245
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi + 4], eax
push eax
call fcn.00562f60
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
je 0x407d66
test edi, edi
je 0x407de4
mov eax, dword [edi]
test eax, eax
je 0x407d9f
mov ecx, dword [edi + 4]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
jbe 0x407d93
int3
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.00407f70
jmp 0x407ab2
int3
int3
int3
int3
int3
int3
cmp byte [esp + 0x3b], 0
jns 0x407e06
push dword [esp + 0x30]
call fcn.00562f60
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.00440fe0
add esp, 8
test al, al
je 0x407ebe
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 0x22c
push str.file_util_win.cc
push str.PathExists
push edi
call fcn.0050b5e0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.005224f0
mov dword [esp + 0xac], 0xa
mov al, byte [0x649456]
test al, al
jne 0x407f40
cmp byte [esp + 0x3b], 0
lea eax, [esp + 0x30]
jns 0x407e96
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x70]
call fcn.005403a0
cmp esi, 0xffffffff
je 0x407ebe
lea ecx, [esp + 0x30]
call fcn.00458e60
test al, al
jne 0x407a8d
cmp byte [esp + 0x3b], 0
jns 0x407ed1
push dword [esp + 0x30]
call fcn.00562f60
add esp, 4
lea ecx, [esp + 0x40]
call fcn.005403a0
jmp 0x407b24
int3
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.005b5f10
add esp, 8
jmp 0x4079a2
movzx ecx, al
lea eax, [esp + 0xb4]
mov dword [eax], ebx
lea esi, [esp + 0xb0]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0xac]
push eax
push esi
call fcn.005b5f10
add esp, 8
jmp 0x407a56
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.005b5f10
add esp, 8
jmp 0x407e87