Function at 0x10006140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066750
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1008bb60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100016b0
mov byte [ebp - 4], 1
push 0x1006bfc8
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.10006390
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.10005d30
add esp, 8
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x18]
call fcn.100016d0
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x100061f3
push 0x1006bfcc
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10002af0
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
call fcn.100016f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.100016d0
jmp 0x1000622d
push str.__OUTDIR
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.10002af0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10]
call fcn.100016f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100016d0
call fcn.10019960
movzx edx, al
test edx, edx
je 0x100062c7
push str.Bin64Setup.exe
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.10002af0
add esp, 0xc
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x10]
call fcn.100016f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100016d0
lea ecx, [ebp - 0x10]
call fcn.10025f80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100062c2
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002cc0
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100016d0
mov eax, dword [ebp + 8]
jmp 0x1000637d
jmp 0x10006349
push str.BinSetup.exe
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.10002af0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x10]
call fcn.100016f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.100016d0
lea ecx, [ebp - 0x10]
call fcn.10025f80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10006349
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002cc0
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100016d0
mov eax, dword [ebp + 8]
jmp 0x1000637d
push 0x1006bfca
mov ecx, dword [ebp + 8]
call fcn.10002ce0
mov eax, dword [ebp - 0x2c]
or eax, 1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100016d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8