Function at 0x409e20
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584219
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x5eb6e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xb
lea ecx, [ebp - 0x444]
push ecx
xor esi, esi
mov ecx, 0x5f38c8
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x460], esi
call fcn.00432310
push 0x10
push str.softwareinfo.ini
lea ecx, [ebp - 0x444]
mov dword [ebp - 4], esi
call fcn.00405900
lea edi, [ebp - 0x5e4]
call fcn.00401eb0
push 0x5f399c
mov ebx, edi
mov byte [ebp - 4], 1
call fcn.00401000
mov edx, dword [0x5f3a98]
mov edi, dword [0x5f3a9c]
lea esi, [ebp - 0x68c]
mov dword [ebp - 0x480], edx
call fcn.004460c0
push 0
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x44c], esp
push 0x5b25a8
call fcn.00403320
mov eax, dword [ebp - 0x434]
push edi
mov byte [ebp - 4], 3
push 0
test eax, eax
je 0x409eec
mov eax, dword [eax + 0x20]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x454], esp
push eax
call fcn.00406020
lea ecx, [ebp - 0x5e4]
push ecx
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x468], esp
push str.InstallNavigator
call fcn.00403320
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x444]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x430], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x68c]
mov byte [ebp - 4], 2
call fcn.00405db0
mov ebx, dword [ebp - 0x564]
cmp dword [ebx - 0xc], 0
jne 0x409f9b
mov eax, esi
call fcn.00446160
lea esi, [ebp - 0x5e4]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409f94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40a8ab
lea ecx, [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x68c]
call fcn.00447de0
lea esi, [ebp - 0x458]
mov byte [ebp - 4], 6
call fcn.00414b80
lea esi, [ebp - 0x468]
lea edi, [ebp - 0x68c]
call fcn.00447f50
push eax
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x464]
push eax
mov byte [ebp - 4], 7
call fcn.0040ab90
add esp, 0xc
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x468]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a00e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x514]
call fcn.00455ee7
xor edi, edi
mov dword [ebp - method.CWnd.virtual_0], vtable.CDownloadCore.0
mov dword [ebp - 0x4b4], edi
mov dword [ebp - 0x4c0], edi
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4b0], edi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x464]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x44c], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x514]
call fcn.00415330
cmp eax, edi
je 0x40a7ea
xor eax, eax
push 0x418
lea ecx, [ebp - 0x42c]
push edi
push ecx
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
call fcn.00553a60
mov eax, dword [ebp - 0x5bc]
add eax, 0xfffffff0
add esp, 0xc
push eax
mov dword [ebp - 0x424], 0x3b
call fcn.00403760
lea edx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x45c], edx
mov byte [ebp - 4], 0xb
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40a0ed
push edi
lea ecx, [ebp - 0x45c]
call fcn.00403620
mov edx, dword [ebp - 0x45c]
lea eax, [ebp - 0x478]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x42c], edx
lea edx, [ebp - 0x42c]
or esi, 0xffffffff
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x474], 1
mov dword [ebp - 0x478], str.WorldWide
mov dword [ebp - 0x470], edx
mov dword [ebp - 0x4c0], 8
cmp eax, edi
je 0x40a728
push str.Download
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40a728
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ebp - 0x4c0]
push ecx
push edx
call eax
mov esi, eax
mov dword [ebp - 0x4b8], esi
cmp esi, edi
jne 0x40a728
call fcn.00453e50
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40a18e
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x420]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x44c], esp
push str.NewVersion
call fcn.00403320
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x454], esp
push str.Common
call fcn.00403320
push ecx
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x414]
mov ecx, esp
mov dword [ebp - 0x438], esp
push edx
call fcn.00403320
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 4], 0xc
call fcn.00413730
add esp, 0x10
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
mov edx, dword [ebp - 0x560]
push ecx
push edx
lea eax, [ebp - 0x450]
push str.WebInstaller_version_checked._Inboxed_is___s__Server_ver_is___s__bDownload_is___d__r_n
push eax
call fcn.00404130
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a249
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x5f3994], edi
jne 0x40a25a
call fcn.004117a0
test eax, eax
je 0x40a287
mov ecx, dword [ebp - 0x450]
push 0x40004
push str.Doanload__
push ecx
mov ecx, dword [ebp - 0x434]
call fcn.00456173
xor edx, edx
cmp eax, 6
mov eax, dword [ebp - 0x470]
sete dl
mov dword [eax + 0xc], edx
push 0xd
lea ecx, [ebp - 0x454]
push ecx
mov ecx, 0x5f38c8
call fcn.00432310
push str.DNWEBINS_
push eax
lea edx, [ebp - 0x43c]
push edx
mov byte [ebp - 4], 0x10
call fcn.004024e0
add esp, 0xc
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x454]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a2d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x43c]
cmp dword [eax - 0xc], edi
je 0x40a303
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a303
test al, 0x10
je 0x40a303
lea ecx, [ebp - 0x43c]
push ecx
call fcn.004140a0
add esp, 4
mov edx, dword [ebp - 0x470]
cmp dword [edx + 0xc], edi
je 0x40a6e3
mov eax, dword [ebp - 0x434]
mov edi, 1
lea ecx, [ebp - 0x44c]
mov dword [eax + 0x11c], edi
call fcn.004038b0
xor eax, eax
mov bl, 0x13
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x498], ecx
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], eax
push eax
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x4a0], str.WorldWide
call fcn.00403670
mov edx, dword [ebp - 0x434]
mov dword [ebp - 0x494], eax
mov eax, dword [edx + 0x20]
lea ecx, [ebp - 0x4a0]
lea esi, [ebp - 0x514]
mov dword [ebp - 0x490], 0x415400
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x4c0], 9
mov dword [ebp - 0x4bc], ecx
call fcn.004153c0
test eax, eax
jne 0x40a6a8
mov edx, dword [ebp - 0x470]
cmp dword [edx + 0xc], eax
je 0x40a6bb
push ecx
lea eax, [ebp - 0x43c]
mov ecx, esp
mov dword [ebp - 0x430], esp
push eax
call fcn.00403520
push ecx
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0x438], esp
push 0x5b325c
call fcn.00403320
lea ecx, [ebp - 0x440]
push ecx
mov byte [ebp - 4], bl
call fcn.00414330
add esp, 0xc
mov bl, 0x15
lea eax, [ebp - 0x440]
mov byte [ebp - 4], bl
call fcn.00413db0
test eax, eax
je 0x40a69b
mov edx, dword [ebp - 0x440]
push edx
push str.Prius_Download_Success._r_nPrius__s__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
mov ecx, esp
mov dword [ebp - 0x438], esp
push str.SilentInstallEx
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x4a4], esp
push str.Common
call fcn.00403320
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x470]
push ecx
add eax, 0x18
mov ecx, esp
mov dword [ebp - 0x47c], esp
push eax
call fcn.00403320
lea ecx, [ebp - 0x430]
push ecx
mov byte [ebp - 4], bl
call fcn.00413730
add esp, 0xc
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x430]
mov ecx, esp
mov dword [ebp - 0x47c], esp
push edx
call fcn.00403520
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x68c]
push ecx
call fcn.004470a0
mov bl, 0x19
mov byte [ebp - 4], bl
cmp dword [0x5f3994], 0
jne 0x40a4e0
call fcn.004117a0
test eax, eax
je 0x40a4f0
push str.__DBG
lea ecx, [ebp - 0x448]
call fcn.00405a10
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x20]
push eax
push ecx
lea eax, [ebp - 0x448]
mov ecx, esp
mov dword [ebp - 0x47c], esp
push eax
call fcn.00403520
push ecx
mov byte [ebp - 4], 0x1a
lea edx, [ebp - 0x440]
mov ecx, esp
mov dword [ebp - 0x4a4], esp
push edx
call fcn.00403520
mov byte [ebp - 4], bl
call fcn.00436af0
test eax, eax
je 0x40a685
lea ecx, [ebp - 0x438]
call fcn.004038b0
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x440]
push eax
push ecx
lea edx, [ebp - 0x438]
push str.__s___s
push edx
call fcn.00404130
push 0x44
lea eax, [ebp - 0x55c]
push 0
push eax
call fcn.00553a60
add esp, 0x1c
lea ecx, [ebp - 0x488]
push ecx
lea edx, [ebp - 0x55c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x55c], 0x44
mov dword [ebp - 0x530], edi
mov word [ebp - 0x52c], di
call fcn.00403670
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a668
mov eax, dword [ebp - 0x488]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x480]
push 0x1f4
push eax
call ebx
cmp eax, 0x102
jne 0x40a617
lea esp, [esp]
mov esi, dword [ebp - 0x434]
push edi
call fcn.0040a8d0
mov esi, eax
test esi, esi
jne 0x40a643
mov ecx, dword [ebp - 0x488]
push 0x1f4
push ecx
call ebx
cmp eax, 0x102
je 0x40a5f0
push str.Wait_dwRet_WAIT_TIMEOUT_r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
mov edx, dword [ebp - 0x484]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x488]
push eax
call esi
jmp 0x40a67a
mov ecx, dword [ebp - 0x434]
push 0
call fcn.004033e0
mov ecx, eax
call fcn.0045abb2
call fcn.00412010
mov dword [ebp - 0x460], 1
jmp 0x40a629
push str.Create_Process_Error_r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
lea ecx, [ebp - 0x438]
call fcn.00403860
lea ecx, [ebp - 0x448]
call fcn.00403860
lea ecx, [ebp - 0x430]
call fcn.00403860
lea ecx, [ebp - 0x440]
call fcn.00403860
jmp 0x40a6bb
push eax
push str.Prius_Download_Error.__d__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a709
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40a7b8
call fcn.00453e50
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40a742
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x430], eax
push esi
lea ecx, [ebp - 0x430]
push str.Prius_Version_check_Error.__d__r_n
push ecx
mov byte [ebp - 4], 0x1c
call fcn.00404130
mov esi, dword [ebp - 0x430]
add esp, 0xc
push esi
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
cmp dword [0x5f3994], edi
jne 0x40a792
call fcn.004117a0
test eax, eax
je 0x40a7a4
mov ecx, dword [ebp - 0x434]
push edi
push str.Download_Web_Install_Package
push esi
call fcn.00456173
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a7c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - method.CWnd.virtual_0], vtable.CDownloadCore.0
cmp eax, edi
je 0x40a80f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x4b4], edi
lea ecx, [ebp - 0x514]
call fcn.00458513
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x464]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a840
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x458]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a866
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x68c]
call fcn.00446160
lea esi, [ebp - 0x5e4]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055064f
mov esp, ebp
pop ebp
ret 4