Function at 0x4021f0
Capabilities:
Create directory
Create process on windows
Delete directory
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x314c
call fcn.0040cbb0
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x3148], eax
push ebx
push esi
push edi
call fcn.00404c50
push str._tWinMain
lea eax, [esp + 0xe4]
push eax
call fcn.00401af0
push str.Entry
mov ecx, 2
lea ebx, [esp + 0xe4]
call fcn.00401cd0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 4
push 0x800
lea ecx, [esp + 0xf4c]
push ecx
push 0x6c
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push eax
call ebx
test eax, eax
je 0x40226e
cmp eax, 0x800
jbe 0x4022af
lea eax, [esp + 0xf48]
mov esi, str.Offline_Updater_cannot_proceed_further._r_nInternal_error_occured_while_extracting_installation_files.
mov ecx, eax
mov edx, 0x800
sub esi, ecx
lea ecx, [edx + 0x7ffff7fe]
test ecx, ecx
je 0x4022a3
movzx ecx, word [esi + eax]
test cx, cx
je 0x4022a3
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402283
jmp 0x4022a7
test edx, edx
jne 0x4022aa
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x104
lea eax, [esp + 0x934]
push eax
push 0x6e
push 0
call edi
push eax
call ebx
test eax, eax
je 0x4022d0
cmp eax, 0x104
jbe 0x402311
lea eax, [esp + 0x930]
mov esi, 0x415e94
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402305
movzx ecx, word [esi + eax]
test cx, cx
je 0x402305
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4022e5
jmp 0x402309
test edx, edx
jne 0x40230c
sub eax, 2
xor edx, edx
mov word [eax], dx
lea esi, [esp + 0x23]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.004038b0
test al, al
jne 0x402388
push str.IsInstallerRunning_Failed
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
mov esi, 0x10
call fcn.00401610
test al, al
je 0x402356
mov esi, 0x180010
push esi
lea eax, [esp + 0x934]
push eax
lea ecx, [esp + 0xf50]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x23], 1
jne 0x402457
push str.Another_instance_of_installer_already_running__hence_exiting
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
push 0x800
lea edx, [esp + 0x2154]
push edx
push 0x69
push 0
call edi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4023d1
cmp eax, 0x800
jbe 0x402412
lea eax, [esp + 0x2150]
mov esi, str.Offline_Updater_cannot_proceed_further._r_nAnother_instance_is_already_running.
mov ecx, eax
mov edx, 0x800
sub esi, ecx
lea ecx, [edx + 0x7ffff7fe]
test ecx, ecx
je 0x402406
movzx ecx, word [esi + eax]
test cx, cx
je 0x402406
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4023e6
jmp 0x40240a
test edx, edx
jne 0x40240d
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esi, 0x10
call fcn.00401610
test al, al
je 0x402425
mov esi, 0x180010
push esi
lea eax, [esp + 0x934]
push eax
lea ecx, [esp + 0x2158]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea edx, [esp + 0x1f4c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4024e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
add esp, 8
mov esi, 0x10
call fcn.00401610
test al, al
je 0x4024a3
mov esi, 0x180010
push esi
lea eax, [esp + 0x934]
push eax
lea ecx, [esp + 0xf50]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0x1f4c]
push 0x8000
push eax
call fcn.00404f20
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x40255a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._topen_Failed___u_
lea ecx, [esi + 2]
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea ecx, [esp + 0x938]
push ecx
lea edx, [esp + 0xf54]
push edx
call fcn.00401340
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x6a]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x20
push esi
call fcn.00405e6e
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4025ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._lseek_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea ecx, [esp + 0x938]
push ecx
lea edx, [esp + 0xf54]
push edx
call fcn.00401340
push esi
call fcn.0040579b
mov eax, dword [esp + 0x20]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x69
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push 4
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.0040550f
add esp, 0xc
cmp eax, 4
je 0x402645
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._read_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0xf54]
push eax
call fcn.00401340
push esi
call fcn.0040579b
mov ecx, dword [esp + 0x20]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x69
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x50]
push 0
push edx
push esi
call fcn.00405e6e
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4026bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._lseek_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.0040579b
mov edx, dword [esp + 0x20]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x69
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
push 6
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0040550f
add esp, 0xc
cmp eax, 6
je 0x40273e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._read_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea ecx, [esp + 0x938]
push ecx
lea edx, [esp + 0xf54]
push edx
call fcn.00401340
push esi
call fcn.0040579b
mov eax, dword [esp + 0x20]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x69
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x28], 2
je 0x4027a3
push str.FileCount_is_not_2
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
lea ecx, [esp + 0x930]
push ecx
lea edx, [esp + 0xf4c]
push edx
call fcn.00401340
push esi
call fcn.0040579b
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x69
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0xd
lea ecx, [esp + 0x58]
push ecx
push esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x6c], al
call fcn.0040550f
add esp, 0xc
cmp eax, 0xd
jne 0x4025e3
xor eax, eax
push 0xd
lea edx, [esp + 0x44]
push edx
push esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x58], al
call fcn.0040550f
add esp, 0xc
cmp eax, 0xd
je 0x402857
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._read_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.0040579b
mov edx, dword [esp + 0x20]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x69
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push 0x208
lea eax, [esp + 0x72c]
push 0
push eax
call fcn.004099e0
add esp, 0xc
lea edi, [esp + 0x728]
call fcn.004043d0
test eax, eax
je 0x4037d0
cmp eax, 0x104
ja 0x4037d0
mov ecx, edi
mov edi, dword [esp + 0x2a]
push ecx
lea esi, [esp + 0x98]
call fcn.00401760
add esp, 4
test al, al
jne 0x40294d
push str.OffUpdIsDiskSpaceAvailable_Failed.
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
push 0x800
lea edx, [esp + 0x2154]
push edx
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4028ed
cmp eax, 0x800
jbe 0x40292e
lea eax, [esp + 0x2150]
mov esi, str.Offline_Updater_cannot_proceed_further._r_nInsufficient_Disk_Space_for_extraction.
mov ecx, eax
mov edx, 0x800
sub esi, ecx
lea ecx, [edx + 0x7ffff7fe]
test ecx, ecx
je 0x402922
movzx ecx, word [esi + eax]
test cx, cx
je 0x402922
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402902
jmp 0x402926
test edx, edx
jne 0x402929
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x930]
push eax
lea ecx, [esp + 0x2154]
push ecx
call fcn.00401340
mov edx, dword [esp + 0x18]
push edx
jmp 0x402774
push 0
lea ecx, [esp + 0x72c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ebx, [esp + 0xe0]
test eax, eax
jne 0x402a18
push str.GetRandomTemporaryFolder_Failed.
lea ecx, [eax + 1]
call fcn.00401cd0
add esp, 4
push 0x800
lea edx, [esp + 0x2154]
push edx
push 0x6a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4029a5
cmp eax, 0x800
jbe 0x4029ec
lea eax, [esp + 0x2150]
mov esi, str.Offline_Updater_cannot_proceed_further._r_nCould_not_create_temporary_folder_for_extracting_installation_files.
mov ecx, eax
mov edx, 0x800
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffff7fe]
test ecx, ecx
je 0x4029e0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4029e0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4029c0
jmp 0x4029e4
test edx, edx
jne 0x4029e7
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x930]
push eax
lea ecx, [esp + 0x2154]
push ecx
call fcn.00401340
mov edx, dword [esp + 0x18]
push edx
call fcn.0040579b
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
jmp 0x40387f
push str.Calling_ExtractAttachedFile___for_init.cab
mov ecx, 2
call fcn.00401cd0
mov esi, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x54]
push ecx
push esi
mov edx, str.init.cab
lea ecx, [esp + 0x730]
call fcn.00404130
add esp, 8
lea ebx, [esp + 0xe0]
test al, al
jne 0x402ab1
push str.ExtractAttachedFile_Failed_for_INIT_CAB_FILE_NAME
mov ecx, 1
call fcn.00401cd0
add esp, 4
lea edx, [esp + 0x930]
push edx
lea eax, [esp + 0xf4c]
push eax
call fcn.00401340
push esi
call fcn.0040579b
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x728]
push edx
call fcn.00403aa0
add esp, 4
lea eax, [esp + 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402787
push str.Calling_ExtractCabFileToFolder___for_init.cab
mov ecx, 2
call fcn.00401cd0
lea ecx, [esp + 0x72c]
add esp, 4
push ecx
call fcn.004045d0
add esp, 4
lea ebx, [esp + 0xe0]
test al, al
jne 0x402b3c
push str.ExtractCabFileToFolder_Failed
mov ecx, 1
call fcn.00401cd0
add esp, 4
lea edx, [esp + 0x930]
push edx
lea eax, [esp + 0xf4c]
push eax
call fcn.00401340
push esi
call fcn.0040579b
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x728]
push edx
call fcn.00403aa0
add esp, 4
lea eax, [esp + 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402787
push str.ExtractCabFileToFolder___success_for_init.cab
mov ecx, 2
call fcn.00401cd0
lea eax, [esp + 0xb3c]
lea edi, [esp + 0x72c]
mov ecx, eax
add esp, 4
xor ebx, ebx
mov edx, 0x104
sub edi, ecx
jmp 0x402b70
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402b90
movzx ecx, word [eax + edi]
test cx, cx
je 0x402b90
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402b70
jmp 0x402b94
test edx, edx
jne 0x402b9c
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x402c1a
push ebx
push str.StringCchCopy_Failed_for_szExeFilePath_with_szTempFilePath___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.0040579b
add esp, 0x14
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x728]
push eax
call fcn.00403aa0
add esp, 4
lea ecx, [esp + 0x728]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0xb38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c24
sub eax, edx
sar eax, 1
mov edx, 0x5c
cmp dx, word [esp + eax*2 + 0xb36]
je 0x402cd2
push 0x41654c
lea eax, [esp + 0xb3c]
call fcn.00401080
test eax, eax
jge 0x402cd2
push eax
push 0x416550
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.0040579b
mov edx, dword [esp + 0x20]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x728]
push eax
call fcn.00403aa0
add esp, 4
lea ecx, [esp + 0x728]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push str.inst.exe
lea eax, [esp + 0xb3c]
call fcn.00401080
test eax, eax
jge 0x402d5e
push eax
push str.StringCchCat_Failed_for_szExeFilePath_with_INST_EXE_FILE_NAME___08X_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0xf54]
push eax
call fcn.00401340
push esi
call fcn.0040579b
mov ecx, dword [esp + 0x20]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x728]
push edx
call fcn.00403aa0
add esp, 4
lea eax, [esp + 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0xd40]
lea edi, [esp + 0xb38]
mov ecx, eax
xor ebx, ebx
mov edx, 0x104
sub edi, ecx
jmp 0x402d80
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402da0
movzx ecx, word [eax + edi]
test cx, cx
je 0x402da0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402d80
jmp 0x402da4
test edx, edx
jne 0x402dac
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x402e2a
push ebx
push str.StringCchCopy_Failed_for_szArguments_with_szExeFilePath___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.0040579b
mov edx, dword [esp + 0x20]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x728]
push eax
call fcn.00403aa0
add esp, 4
lea ecx, [esp + 0x728]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x41b2fc]
mov edx, dword [edx + 4]
xor bl, bl
test edx, edx
je 0x402e7c
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e40
sub eax, edi
sar eax, 1
je 0x402e7c
push str._silent
push edx
call fcn.00404e61
add esp, 8
test eax, eax
jne 0x402e7c
push str._silent_found_in_argv_1_
lea ecx, [eax + 1]
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
mov bl, 1
cmp byte [esp + 0x29], 1
je 0x402e8c
cmp bl, 1
jne 0x402f2a
push str.Silent_build__Calling_StringCchCat___for_silent.
mov ecx, 2
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
push str.__silent
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x402f2a
push eax
push str.StringCchCat_Failed_for_szArguments_with__silent___08X_
mov ecx, 1
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.0040579b
mov edx, dword [esp + 0x20]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x728]
push eax
call fcn.00403aa0
add esp, 4
lea ecx, [esp + 0x728]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x3c]
call fcn.00404990
add esp, 8
lea ebx, [esp + 0xe0]
test al, al
jne 0x402fc1
push str.CreateSecurityAttributeForEveryone_Failed.
mov ecx, 1
call fcn.00401cd0
add esp, 4
lea ecx, [esp + 0x930]
push ecx
lea edx, [esp + 0xf4c]
push edx
call fcn.00401340
push esi
call fcn.0040579b
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x728]
push ecx
call fcn.00403aa0
add esp, 4
lea edx, [esp + 0x728]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push str.GlobalStart_Extraction
push str.Before_calling_CreateEventW_for___s_
mov ecx, 2
call fcn.00401cd0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 8
push str.GlobalStart_Extraction
push 0
push 0
lea eax, [esp + 0x40]
push eax
call esi
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 0xe0]
test edi, edi
jne 0x403060
push eax
push str.GlobalStart_Extraction
push str.CreateEvent_failed_for___s_._ErrorCode:_lu_
mov ecx, 1
call fcn.00401cd0
add esp, 0xc
lea ecx, [esp + 0x930]
push ecx
lea edx, [esp + 0xf4c]
push edx
call fcn.00401340
lea eax, [esp + 0x3c]
add esp, 8
test eax, eax
je 0x40304e
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c00
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040579b
add esp, 4
jmp 0x402bd8
mov ecx, 2
cmp eax, 0xb7
jne 0x4030e6
push str.GlobalStart_Extraction
push str.Event___s__already_exists
call fcn.00401cd0
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0xf54]
push eax
call fcn.00401340
add esp, 0x10
push edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [esp + 0x34]
test ecx, ecx
je 0x4030b5
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c00
mov edx, dword [esp + 0x10]
push edx
call fcn.0040579b
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call esi
lea ecx, [esp + 0x728]
push ecx
call fcn.00403aa0
add esp, 4
lea edx, [esp + 0x728]
push edx
jmp 0x402bfb
push str.GlobalExtraction_Complete
push str.Before_calling_CreateEventW_for___s_
call fcn.00401cd0
add esp, 8
push str.GlobalExtraction_Complete
xor ebx, ebx
push ebx
push ebx
lea eax, [esp + 0x40]
push eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
jne 0x403126
push eax
push str.GlobalExtraction_Complete
lea ebx, [esp + 0xe8]
jmp 0x40300b
cmp eax, 0xb7
jne 0x403166
push str.GlobalExtraction_Complete
push str.Event___s__already_exists
mov ecx, 2
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0xf54]
push eax
call fcn.00401340
add esp, 0x10
push esi
jmp 0x403094
lea eax, [esp + 0x34]
test eax, eax
je 0x403181
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c00
xor ebx, ebx
mov edx, 0xc
mov ecx, edx
lea eax, [esp + 0x70]
lea esp, [esp]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x403190
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov ecx, edx
lea eax, [esp + 0x64]
lea ebx, [ebx]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4031b0
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov ecx, 0x44
lea eax, [esp + 0x98]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4031d0
mov dword [esp + 0x98], 0x44
mov dword [esp + 0xc4], 0x80
mov word [esp + 0xc8], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xd44]
push edx
lea eax, [esp + 0xb40]
push eax
push str.Calling_CreateProcess___for_file__s__with_arguments__s_._ErrCode__u_.
mov ecx, 2
lea ebx, [esp + 0xf0]
call fcn.00401cd0
add esp, 0x10
push str.__filesize
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x4032a5
push eax
push str.StringCchCat___for_szArguments_FAILED._hResult__08X_.
mov ecx, 2
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea ecx, [esp + 0x938]
push ecx
lea edx, [esp + 0xf54]
push edx
call fcn.00401340
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [esp + 0x34]
test eax, eax
je 0x40328c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c00
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040579b
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call esi
jmp 0x402be3
xor eax, eax
mov dword [esp + 0x702], eax
mov dword [esp + 0x706], eax
mov dword [esp + 0x70a], eax
mov dword [esp + 0x70e], eax
mov dword [esp + 0x712], eax
mov dword [esp + 0x716], eax
mov dword [esp + 0x71a], eax
mov dword [esp + 0x71e], eax
mov dword [esp + 0x722], eax
mov word [esp + 0x726], ax
mov eax, dword [esp + 0x40]
xor edx, edx
push eax
push 0x416ae4
lea ecx, [edx + 0x14]
lea ebx, [esp + 0x708]
mov word [esp + 0x708], dx
call fcn.00401870
add esp, 8
test eax, eax
jge 0x403323
push eax
push str.StringCchPrintf___for_szCabSize_FAILED._hResult__08X_.
jmp 0x403241
lea edx, [esp + 0x700]
push edx
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x4033c1
push eax
push str.StringCchCat___for_szArguments_FAILED._hResult__08X_.
mov ecx, 2
lea ebx, [esp + 0xe8]
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea edx, [esp + 0x34]
test edx, edx
je 0x403390
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c00
mov eax, dword [esp + 0x10]
push eax
call fcn.0040579b
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call esi
lea edx, [esp + 0x728]
push edx
call fcn.00403aa0
add esp, 4
lea eax, [esp + 0x728]
push eax
jmp 0x402bfb
cmp dword [0x41b2a0], 0
je 0x403428
push 0x415d7c
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x4033f9
push eax
push str.StringCchCat_Failed_for_CMD_PARAM_INSTLOG___08X_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
add esp, 8
push str._InstLog
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x403428
push eax
push str.StringCchCat_Failed_for_CMD_PARAM_INSTLOG___08X_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401cd0
add esp, 8
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x9c]
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0xd60]
push edx
lea eax, [esp + 0xb5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ebx, [esp + 0xe0]
test eax, eax
jne 0x4034cc
lea ecx, [esp + 0xd40]
push ecx
lea edx, [esp + 0xb3c]
push edx
push str.CreateProcess___FAILED_for_file__s__with_arguments__s_.
lea ecx, [eax + 1]
call fcn.00401cd0
add esp, 0xc
lea eax, [esp + 0x930]
push eax
lea ecx, [esp + 0xf4c]
push ecx
call fcn.00401340
mov edx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edx
call edi
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.0040579b
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call edi
jmp 0x4033a4
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x8c], ecx
push str.Before_calling_WaitForMultipleObjects__for_process_inst.exe_and_start_extraction_event.
mov ecx, 2
mov dword [esp + 0x94], edi
call fcn.00401cd0
add esp, 4
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x94]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x403570
push str.GlobalStart_Extraction
lea eax, [esp + 0xb3c]
push eax
push str.WaitForMultipleObjects___FAILED_for_file__s__and_event__s_.
mov ecx, 1
lea ebx, [esp + 0xec]
call fcn.00401cd0
add esp, 0xc
lea ecx, [esp + 0x930]
push ecx
lea edx, [esp + 0xf4c]
push edx
call fcn.00401340
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040579b
add esp, 4
jmp 0x4033a4
cmp eax, 1
jne 0x40373d
push str.After_calling_WaitForMultipleObjects__._Extraction_completed.
lea ecx, [eax + 1]
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
push str.Extracting_init.cab.
mov ecx, 2
call fcn.00401cd0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x40]
push ecx
push edx
mov edx, str.update.cab
lea ecx, [esp + 0x730]
call fcn.00404130
add esp, 8
test al, al
jne 0x403633
push str.update.cab
push str.ExtractAttachedFile_Failed_for___s_.
mov ecx, 1
call fcn.00401cd0
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.0040579b
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call edi
lea ecx, [esp + 0x728]
push ecx
call fcn.00403aa0
add esp, 4
lea edx, [esp + 0x728]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402787
mov eax, dword [esp + 0x10]
push eax
call fcn.0040579b
add esp, 4
push str.After_calling_WaitForMultipleObjects__._Extraction_completed.
mov ecx, 2
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
push str.GlobalExtraction_Complete
push str.Before_calling_SetEvent___for___s__event.
mov ecx, 2
call fcn.00401cd0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4036bd
push str.GlobalExtraction_Complete
push str.SetEvent___FAILED_for___s__event.
lea ecx, [eax + 1]
call fcn.00401cd0
lea ecx, [esp + 0x938]
push ecx
lea edx, [esp + 0xf54]
push edx
call fcn.00401340
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
jmp 0x4030c9
push str.Before_calling_WaitForSingleObject__for_process_inst.exe.
mov ecx, 2
call fcn.00401cd0
mov eax, dword [esp + 0x80]
add esp, 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x40373d
lea ecx, [esp + 0xd40]
push ecx
lea edx, [esp + 0xb3c]
push edx
push str.WaitForSingleObject___FAILED_for_file__s__with_arguments__s_.
mov ecx, 1
lea ebx, [esp + 0xec]
call fcn.00401cd0
add esp, 0xc
lea eax, [esp + 0x930]
push eax
lea ecx, [esp + 0xf4c]
push ecx
call fcn.00401340
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
jmp 0x402be3
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x80]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x7c]
push edx
call ebx
push edi
call ebx
push esi
call ebx
mov eax, dword [esp + 0xc]
push eax
call ebx
lea ecx, [esp + 0x728]
push ecx
call fcn.00403aa0
add esp, 4
lea edx, [esp + 0x728]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x24]
push eax
push str.Exit_with_exit_code__u_
mov ecx, 2
lea ebx, [esp + 0xe8]
call fcn.00401cd0
mov eax, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10
push str.GetRandomTemporaryFolder_Failed.
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401cd0
add esp, 4
push 0x800
lea ecx, [esp + 0x2154]
push ecx
push 0x6a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x403812
cmp eax, 0x800
jbe 0x40385c
lea eax, [esp + 0x2150]
mov edi, str.Offline_Updater_cannot_proceed_further._r_nCould_not_create_temporary_folder_for_extracting_installation_files.
mov ecx, eax
mov edx, 0x800
sub edi, ecx
jmp 0x403830
lea ecx, [edx + 0x7ffff7fe]
test ecx, ecx
je 0x403850
movzx ecx, word [edi + eax]
test cx, cx
je 0x403850
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403830
jmp 0x403854
test edx, edx
jne 0x403857
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x930]
push eax
lea ecx, [esp + 0x2154]
push ecx
call fcn.00401340
push esi
call fcn.0040579b
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3154]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x6c
call fcn.00404cba
mov esp, ebp
pop ebp
ret 0x10