Function at 0x411a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593bac
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x601ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xcc], edi
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x14], 0
test esi, esi
je 0x411db2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x14], 0
je 0x411db2
push str.AsusSetup64.exe
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
call fcn.00408d70
lea ecx, [ebp - 0xe4]
call fcn.0041a810
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00413440
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd0]
cmp eax, 8
jb 0x411b4e
inc eax
lea ecx, [ebp - 0xe4]
push eax
push dword [ebp - 0xe4]
call fcn.004030d0
xor eax, eax
mov dword [ebp - 0xd0], 7
cmp dword [ebp - 0x4c], 8
mov word [ebp - 0xe4], ax
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
mov dword [ebp - 0xd4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411ba1
push 0x10
push 0x5dec14
push str.Cant_find_AsusSetup64.exe
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov byte [ebp - 0xb5], al
jmp 0x411d94
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x1c], 0
push eax
call fcn.004031e0
push 0x410
mov byte [ebp - 4], 4
call fcn.00425129
add esp, 4
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov esi, eax
mov dword [ebp - 0xc8], esi
mov edx, esi
cmovae ecx, dword [ebp - 0x2c]
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x411bf0
push 0x208
call fcn.00425129
add esp, 4
lea ecx, [ebp - 0x48]
mov edi, eax
push 0x5de72c
call fcn.00404fe0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
call fcn.00403c90
mov ecx, eax
call fcn.00403e70
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x48]
mov edx, edi
cmovae ecx, dword [ebp - 0x48]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x411c40
push 0x44
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0056e4a0
sub esp, 0xc
mov dword [ebp - 0xa4], 0x44
mov ecx, esp
mov dword [ebp - 0xc4], esp
xorps xmm0, xmm0
movups xmmword [ebp - 0xb4], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x411ca6
mov eax, dword [ecx]
jmp 0x411ca8
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.004031e0
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push str.Use_64bit_AsusSetup.exe:
call fcn.00404fe0
mov byte [ebp - 4], 5
call fcn.0041b840
add esp, 0x30
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0xb4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
mov byte [ebp - 0xb5], al
call esi
push dword [ebp - 0xb0]
call esi
push dword [ebp - 0xc8]
call fcn.00425124
push edi
call fcn.00425124
mov eax, dword [ebp - 0xcc]
add esp, 8
mov eax, dword [eax + 8]
mov byte [eax + 0x810], 0
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x411d57
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.004030d0
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], 0
cmp eax, 8
jb 0x411d80
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004030d0
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x412346
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.004030d0
jmp 0x412346
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411dd5
xor al, al
mov byte [ebp - 0xb5], al
jmp 0x412346
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
movq qword [ebp - 0xb0], xmm0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 7
xor edx, edx
push dword [ebp - 0xc4]
push ecx
xor ecx, ecx
call fcn.00403a30
add esp, 8
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xb0]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x411e51
mov eax, dword [ecx]
jmp 0x411e53
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.004031e0
call fcn.00410d60
mov esi, dword [ebp - 0xb0]
test eax, eax
je 0x412303
mov ecx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x14], eax
sub ecx, esi
mov dword [ebp - 0xc8], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc4], eax
je 0x412256
nop word [eax + eax]
sub esp, 0x18
mov dword [ebp - 0x30], 0
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x411ee2
mov eax, dword [ecx]
jmp 0x411ee4
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.004031e0
lea ecx, [ebp - 0xe4]
call fcn.0041a810
add esp, 0x18
mov edi, eax
lea eax, [ebp + 8]
cmp eax, edi
je 0x411f3e
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x411f21
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004030d0
xor eax, eax
mov dword [ebp + 0x1c], 7
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00403740
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xd0]
cmp eax, 8
jb 0x411f60
inc eax
lea ecx, [ebp - 0xe4]
push eax
push dword [ebp - 0xe4]
call fcn.004030d0
cmp dword [esi + 0x14], 0x10
jb 0x411f6a
mov edx, dword [esi]
jmp 0x411f6c
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00406970
mov byte [ebp - 4], 9
lea edx, [ebp - 0x30]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push edx
cmovae ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 1
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
push 0
call dword [sym.imp.newdev.dll_UpdateDriverForPlugAndPlayDevicesW]
test eax, eax
jne 0x412054
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov ecx, esp
cmp eax, 0xe000020b
jne 0x41201f
mov dword [ebp - 0xbc], esp
push str._Install_failed:_ERROR_NO_SUCH_DEVINST
call fcn.00404fe0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x411ff7
mov eax, dword [ecx]
jmp 0x411ff9
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.004031e0
mov byte [ebp - 4], 9
call fcn.0041b840
add esp, 0x30
mov byte [ebp - 4], 7
jmp 0x4120be
mov dword [ebp - 0xc0], esp
cmp eax, 2
je 0x412112
test eax, eax
jne 0x4120f4
push str._Install_failed:_The_current_driver_in_system_is_better.
call fcn.00404fe0
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.0040a070
jmp 0x4120ab
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc0], esp
push str._Install_completed
call fcn.00404fe0
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x412098
mov eax, dword [ecx]
jmp 0x41209a
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.004031e0
mov byte [ebp - 4], 9
call fcn.0041b840
add esp, 0x30
mov byte [ebp - 4], 7
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4120d3
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004030d0
mov edi, dword [ebp - 0xc8]
add esi, 0x18
inc edi
mov dword [ebp - 0xc8], edi
cmp edi, dword [ebp - 0xc4]
jb 0x411eb0
jmp 0x412176
push str._Install_failed:_other_error
call fcn.00404fe0
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.0040a070
jmp 0x41215e
push str._Install_failed:_ERROR_FILE_NOT_FOUND
call fcn.00404fe0
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41214b
mov eax, dword [ecx]
jmp 0x41214d
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x2c]
push edx
push eax
call fcn.004031e0
mov byte [ebp - 4], 9
call fcn.0041b840
add esp, 0x30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00402f10
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x41224a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc0], esp
push str._Install_Successfully
call fcn.00404fe0
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x4121c5
mov eax, dword [ecx]
jmp 0x4121c7
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.004031e0
mov byte [ebp - 4], 7
call fcn.0041b840
mov eax, dword [ebp - 0xcc]
add esp, 0x30
mov eax, dword [eax + 8]
cmp byte [eax + 0x815], 0
jne 0x41223d
cmp byte [eax + 0x810], 0
jne 0x41223d
mov byte [eax + 0x816], 0
call fcn.0044133d
push 0x80
push 0
push 0
mov eax, dword [eax + 4]
push 0
push 0
push 1
mov eax, dword [eax + 0x20]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x40
push 0x5dec14
push str.Install_Finished__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [ebp - 0xb0]
mov al, 1
jmp 0x412305
mov esi, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xcc]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc0], esp
push str._Install_failed
call fcn.00404fe0
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x41229a
mov eax, dword [ecx]
jmp 0x41229c
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.004031e0
mov byte [ebp - 4], 7
call fcn.0041b840
mov eax, dword [edi + 8]
add esp, 0x30
cmp byte [eax + 0x815], 0
jne 0x412303
mov byte [eax + 0x816], 0
call fcn.0044133d
push 0x80
push 0
push 0
mov eax, dword [eax + 4]
push 0
push 0
push 1
mov eax, dword [eax + 0x20]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x10
push 0x5dec14
push str.Install_Failed__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov byte [ebp - 0xb5], al
test esi, esi
je 0x41234c
push dword [ebp - 0xc0]
mov edx, dword [ebp - 0xac]
push ecx
mov ecx, esi
call fcn.00403a30
mov ecx, dword [ebp - 0xa8]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004037b0
mov al, byte [ebp - 0xb5]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x412367
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004030d0
mov al, byte [ebp - 0xb5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056a31e
mov esp, ebp
pop ebp
ret 0x18