Function at 0x490690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50da42
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x561864]
test eax, eax
jne 0x4906f6
push 0x56469c
push 0x2c
call fcn.004bd1fd
add esp, 8
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4906e8
mov ecx, eax
call fcn.004810e0
jmp 0x4906ea
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x561864], eax
push str.InstallerThread_start
push str.Diskpart___SetupHelper
push eax
call fcn.00481ee0
add esp, 0xc
cmp byte [0x562260], 0
jne 0x49076e
mov dword [ebp - 4], 1
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x490ae4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
mov ecx, 0x5622d8
call fcn.00496690
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x490754
mov eax, dword [eax]
push eax
push 1
lea eax, [ebp - 0x44]
push str.status_dfrom_s
push eax
call fcn.00481b50
mov byte [ebp - 4], 2
jmp 0x49082c
mov ecx, 0x5622d8
call fcn.00496ab0
test al, al
je 0x4907d5
mov dword [ebp - 4], 4
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x490aee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 5
push eax
mov ecx, 0x5622d8
call fcn.00496690
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x4907be
mov eax, dword [eax]
push eax
push 3
lea eax, [ebp - 0x44]
push str.status_dfrom_s
push eax
call fcn.00481b50
mov byte [ebp - 4], 5
jmp 0x49082c
mov dword [ebp - 4], 7
call fcn.00481c30
mov ecx, eax
test ecx, ecx
je 0x490af8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 8
push eax
mov ecx, 0x5622d8
call fcn.00496690
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 9
jb 0x490817
mov eax, dword [eax]
push eax
push 2
lea eax, [ebp - 0x44]
push str.status_dfrom_s
push eax
call fcn.00481b50
mov byte [ebp - 4], 8
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00402e50
call fcn.004853c0
mov esi, dword [ebp - 0x44]
mov ecx, eax
push 0
push esi
call fcn.00485460
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x490868
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.004922c0
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
test al, al
jne 0x490890
call fcn.00481d30
push str.InstallerThread_kill_app_false
jmp 0x490958
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x562058
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x490906
push 0x562058
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x490906
call fcn.00481d30
push 0x562058
push str.extractInstallerFiles_create_dir__s__error
push str.Diskpart___SetupHelper
push eax
call fcn.00481ee0
mov eax, dword [0x562054]
add esp, 0x10
test eax, eax
je 0x4908ec
push 4
push 0
push 0x7e9
push eax
call esi
call fcn.00481d30
push str.extractInstallerFiles_create_dir_error
push str.Diskpart___SetupHelper
push eax
call fcn.00481ee0
add esp, 0xc
jmp 0x49094e
mov eax, dword [0x562050]
add eax, 1
mov dword [0x562050], eax
jns 0x490919
xor eax, eax
jmp 0x490923
cmp eax, 0x64
jle 0x490928
mov eax, 0x64
mov dword [0x562050], eax
mov ecx, dword [0x562054]
test ecx, ecx
je 0x49093d
push eax
push 0
push 0x7e8
push ecx
call esi
push 0x562058
call fcn.004917b0
add esp, 4
test al, al
jne 0x49097a
call fcn.00481d30
push str.InstallerThread_extractInstallerFiles_false
push str.Diskpart___SetupHelper
push eax
call fcn.00481ee0
add esp, 0xc
mov eax, dword [0x562054]
test eax, eax
je 0x490ac0
push 2
jmp 0x490ab6
call fcn.004910c0
push 0x562058
push reloc.gdiplus.dll_Ordinal_1
call fcn.00483510
add esp, 8
test al, al
jne 0x4909aa
mov eax, dword [0x562054]
test eax, eax
je 0x4909aa
push 6
push 0
push 0x7e9
push eax
call esi
push reloc.gdiplus.dll_Ordinal_1
call fcn.00492c20
mov ecx, dword [0x562054]
add esp, 4
test al, al
jne 0x4909d7
test ecx, ecx
je 0x4909d7
push 7
push 0
push 0x7e9
push ecx
call esi
mov ecx, dword [0x562054]
mov eax, dword [0x562050]
add eax, 1
mov dword [0x562050], eax
jns 0x4909ea
xor eax, eax
jmp 0x4909f4
cmp eax, 0x64
jle 0x4909f9
mov eax, 0x64
mov dword [0x562050], eax
test ecx, ecx
je 0x490a08
push eax
push 0
push 0x7e8
push ecx
call esi
lea eax, [ebp - 0x28]
mov ecx, 0x5622d8
push eax
call fcn.00496490
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xa
je 0x490a6b
lea eax, [ebp - 0x40]
push eax
call fcn.00482b50
add esp, 4
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 0xb
jne 0x490a4e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x490a45
mov eax, dword [ebp - 0x28]
push eax
call fcn.00483340
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x490a5a
mov eax, dword [ebp - 0x28]
push eax
call fcn.004831f0
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00402e50
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00402e50
call fcn.00492e70
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x5622d8
call fcn.00496af0
test al, al
je 0x490aa6
mov ecx, 0x5622d8
call fcn.00496ad0
test al, al
je 0x490aab
call fcn.00492500
mov eax, dword [0x562054]
test eax, eax
je 0x490ac0
push 1
push 0
push 0x7e9
push eax
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004818f0
push 0x80004005
call fcn.004818f0
push 0x80004005
call fcn.004818f0
int3