Function at 0x416698
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451651
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x46d978]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x46d978]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
xor edx, edx
mov dword [esp + 0x14], edx
push 7
pop ecx
xor eax, eax
mov ebx, edx
mov edi, edx
mov byte [esp + 0x68], 1
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], edx
mov word [esp + 0x6c], ax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], edx
mov word [esp + 0x84], ax
mov dword [esp + 0x188], edx
mov ecx, dword [0x4717fc]
test ecx, ecx
je 0x41672e
add ecx, 0xfffffffc
jmp 0x416730
mov ecx, edx
lea eax, [esp + 0x38]
push eax
call fcn.00406522
mov byte [esp + 0x188], 1
cmp dword [esp + 0x48], 0
jne 0x4167c7
push str.TaskImpl.cpp
lea ecx, [esp + 0x24]
call fcn.004012d4
push 2
pop ebx
push 0xfe
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0xc0]
mov byte [esp + 0x194], bl
call fcn.00419d97
lea ecx, [eax + 0x28]
mov edx, str.ConfigureQueryTask::Run
mov byte [esp + 0x188], 3
call fcn.00405695
mov edx, str.Error:_Work_dir_string_is_empty_
mov ecx, eax
call fcn.00405695
lea ecx, [esp + 0xb4]
mov byte [esp + 0x188], bl
call fcn.00419f5b
lea ecx, [esp + 0x20]
call fcn.00401303
push 0
push 1
lea ecx, [esp + 0x40]
call fcn.00404e3f
jmp 0x416b61
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41686b
push str.TaskImpl.cpp
lea ecx, [esp + 0x24]
call fcn.004012d4
push 0x106
lea eax, [esp + 0x24]
push eax
push 2
pop ebx
push ebx
lea ecx, [esp + 0xc0]
mov byte [esp + 0x194], 4
call fcn.00419d97
lea ecx, [eax + 0x28]
mov edx, str.ConfigureQueryTask::Run
mov byte [esp + 0x188], 5
call fcn.00405695
mov edx, str.Error:_Work_dir_create_failed
mov ecx, eax
call fcn.00405695
lea ecx, [esp + 0xb4]
mov byte [esp + 0x188], 4
call fcn.00419f5b
lea ecx, [esp + 0x20]
call fcn.00401303
jmp 0x416b03
push 0x54
call fcn.0042dbe8
mov edi, eax
pop ecx
mov dword [esp + 0x18], edi
mov byte [esp + 0x188], 6
test edi, edi
je 0x4168bc
push str.boot_setup.pack
lea ecx, [esp + 0x24]
call fcn.00404a24
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esi + 8]
mov byte [esp + 0x190], 7
push eax
mov ecx, edi
mov dword [esp + 0x20], 1
call fcn.00416076
mov edi, eax
jmp 0x4168be
xor edi, edi
mov dword [esp + 0x188], 8
mov ecx, dword [esi + 0x24]
cmp edi, ecx
je 0x4168da
test ecx, ecx
je 0x4168da
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
inc eax
mov dword [esp + 0x188], eax
mov dword [esi + 0x24], edi
test byte [esp + 0x14], al
je 0x4168f9
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.00404e3f
mov ecx, dword [esi + 0x24]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
call fcn.004161e4
mov edi, eax
push str.TaskImpl.cpp
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edi
call fcn.004012d4
push 0x111
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x194], 9
call fcn.00419d97
mov byte [esp + 0x188], 0xa
push dword [esp + 0x14]
mov edx, str.ConfigureQueryTask::Run
push ecx
push edi
push ecx
lea ecx, [eax + 0x28]
call fcn.00405695
mov edx, str.__Download_Completed__download_ret:
mov ecx, eax
call fcn.00405695
pop ecx
mov ecx, eax
call fcn.00407a2e
mov edx, str.__Windows_Last_Error:
mov ecx, eax
call fcn.00405695
pop ecx
mov ecx, eax
call fcn.00407a2e
lea ecx, [esp + 0xb4]
mov byte [esp + 0x188], 9
call fcn.00419f5b
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 1
call fcn.00401303
test edi, edi
jne 0x416b00
push str.boot_setup.pack
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
call fcn.00417658
mov byte [esp + 0x18c], 0xb
lea edx, [esp + 0x24]
lea ecx, [esp + 0x54]
mov dword [esp], str..ini
call fcn.00417658
pop ecx
mov byte [esp + 0x188], 0xc
cmp dword [esp + 0x64], 8
lea edi, [esp + 0x50]
cmovae edi, dword [esp + 0x50]
cmp dword [esp + 0x34], 8
lea esi, [esp + 0x20]
cmovae esi, dword [esp + 0x20]
call fcn.00405b6a
push ecx
push edi
push esi
call fcn.0041cde3
test eax, eax
jne 0x416a3c
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00404a24
lea eax, [esp + 0x80]
push eax
call fcn.00416bd8
jmp 0x416ab4
push str.TaskImpl.cpp
lea ecx, [esp + 0xa0]
call fcn.004012d4
push 0x11f
lea eax, [esp + 0xa0]
push eax
push 2
lea ecx, [esp + 0xc0]
mov byte [esp + 0x194], 0xd
call fcn.00419d97
lea ecx, [eax + 0x28]
mov edx, str.ConfigureQueryTask::Run
mov byte [esp + 0x188], 0xe
call fcn.00405695
mov edx, str.Unzip_failed_
mov ecx, eax
call fcn.00405695
lea ecx, [esp + 0xb4]
mov byte [esp + 0x188], 0xd
call fcn.00419f5b
lea ecx, [esp + 0x9c]
call fcn.00401303
push 3
pop ebx
cmp dword [esp + 0x34], 8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
call esi
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push eax
call esi
push 0
push 1
lea ecx, [esp + 0x58]
call fcn.00404e3f
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.00404e3f
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x416b03
push 4
pop ebx
push 0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x190], 0
call fcn.00404e3f
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x416b61
mov eax, dword [ecx]
call dword [eax + 0x10]
sub esp, 0x34
lea eax, [esp + 0x9c]
mov ecx, esp
push eax
call fcn.00416b8e
mov ecx, dword [esi + 0x20]
push edi
push ebx
call fcn.004176c4
mov ecx, dword [0x4717fc]
add esp, 0x3c
mov edx, eax
test ecx, ecx
je 0x416b54
add ecx, 0xfffffffc
jmp 0x416b56
xor ecx, ecx
mov ecx, dword [ecx + 4]
push 0
mov eax, dword [ecx]
push edx
call dword [eax + 4]
lea ecx, [esp + 0x68]
call fcn.0040d7d3
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042d3d2
mov esp, ebp
pop ebp
ret