Function at 0x402230
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.0040cbd0
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x3148], eax
push ebx
push esi
push edi
call fcn.00401530
push str._tWinMain
lea eax, [esp + 0xe4]
push eax
call fcn.00401b20
push str.Entry
mov ecx, 2
lea ebx, [esp + 0xe4]
call fcn.00401d00
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 0x4022ae
cmp eax, 0x800
jbe 0x4022ef
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 0x4022e3
movzx ecx, word [esi + eax]
test cx, cx
je 0x4022e3
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4022c3
jmp 0x4022e7
test edx, edx
jne 0x4022ea
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 0x402310
cmp eax, 0x104
jbe 0x402351
lea eax, [esp + 0x930]
mov esi, 0x4160e4
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402345
movzx ecx, word [esi + eax]
test cx, cx
je 0x402345
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402325
jmp 0x402349
test edx, edx
jne 0x40234c
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.004038f0
test al, al
jne 0x4023c8
push str.IsInstallerRunning_Failed
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401d00
add esp, 4
mov esi, 0x10
call fcn.00401770
test al, al
je 0x402396
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x23], 1
jne 0x402497
push str.Another_instance_of_installer_already_running__hence_exiting
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401d00
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 0x402411
cmp eax, 0x800
jbe 0x402452
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 0x402446
movzx ecx, word [esi + eax]
test cx, cx
je 0x402446
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402426
jmp 0x40244a
test edx, edx
jne 0x40244d
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esi, 0x10
call fcn.00401770
test al, al
je 0x402465
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.00404cda
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 0x402520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
add esp, 8
mov esi, 0x10
call fcn.00401770
test al, al
je 0x4024e3
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0x1f4c]
push 0x8000
push eax
call fcn.00404f40
mov esi, eax
add esp, 0xc
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x40259a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._topen_Failed___u_
lea ecx, [esi + 2]
lea ebx, [esp + 0xe8]
call fcn.00401d00
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x20
push esi
call fcn.00405b1a
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40260e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._lseek_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea ecx, [esp + 0x938]
push ecx
lea edx, [esp + 0xf54]
push edx
call fcn.00401340
push esi
call fcn.004057bb
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
push 4
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.0040552f
add esp, 0xc
cmp eax, 4
je 0x402685
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._read_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0xf54]
push eax
call fcn.00401340
push esi
call fcn.004057bb
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x50]
push 0
push edx
push esi
call fcn.00405b1a
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4026fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._lseek_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.004057bb
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.00404cda
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.0040552f
add esp, 0xc
cmp eax, 6
je 0x40277e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._read_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea ecx, [esp + 0x938]
push ecx
lea edx, [esp + 0xf54]
push edx
call fcn.00401340
push esi
call fcn.004057bb
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
cmp byte [esp + 0x28], 2
je 0x4027e3
push str.FileCount_is_not_2
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401d00
add esp, 4
lea ecx, [esp + 0x930]
push ecx
lea edx, [esp + 0xf4c]
push edx
call fcn.00401340
push esi
call fcn.004057bb
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.00404cda
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.0040552f
add esp, 0xc
cmp eax, 0xd
jne 0x402623
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.0040552f
add esp, 0xc
cmp eax, 0xd
je 0x402897
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._read_Failed___u_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.004057bb
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
push 0x208
lea eax, [esp + 0x72c]
push 0
push eax
call fcn.00409a00
add esp, 0xc
lea edi, [esp + 0x728]
call fcn.00404460
test eax, eax
je 0x403810
cmp eax, 0x104
ja 0x403810
mov ecx, edi
mov edi, dword [esp + 0x2a]
push ecx
lea esi, [esp + 0x98]
call fcn.00401860
add esp, 4
test al, al
jne 0x40298d
push str.OffUpdIsDiskSpaceAvailable_Failed.
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401d00
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 0x40292d
cmp eax, 0x800
jbe 0x40296e
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 0x402962
movzx ecx, word [esi + eax]
test cx, cx
je 0x402962
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402942
jmp 0x402966
test edx, edx
jne 0x402969
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 0x4027b4
push 0
lea ecx, [esp + 0x72c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ebx, [esp + 0xe0]
test eax, eax
jne 0x402a58
push str.GetRandomTemporaryFolder_Failed.
lea ecx, [eax + 1]
call fcn.00401d00
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 0x4029e5
cmp eax, 0x800
jbe 0x402a2c
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 0x402a20
movzx ecx, word [esi + eax]
test cx, cx
je 0x402a20
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402a00
jmp 0x402a24
test edx, edx
jne 0x402a27
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.004057bb
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
jmp 0x4038bf
push str.Calling_ExtractAttachedFile___for_init.cab
mov ecx, 2
call fcn.00401d00
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.004041c0
add esp, 8
lea ebx, [esp + 0xe0]
test al, al
jne 0x402af1
push str.ExtractAttachedFile_Failed_for_INIT_CAB_FILE_NAME
mov ecx, 1
call fcn.00401d00
add esp, 4
lea edx, [esp + 0x930]
push edx
lea eax, [esp + 0xf4c]
push eax
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
add esp, 4
lea eax, [esp + 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4027c7
push str.Calling_ExtractCabFileToFolder___for_init.cab
mov ecx, 2
call fcn.00401d00
lea ecx, [esp + 0x72c]
add esp, 4
push ecx
call fcn.00404660
add esp, 4
lea ebx, [esp + 0xe0]
test al, al
jne 0x402b7c
push str.ExtractCabFileToFolder_Failed
mov ecx, 1
call fcn.00401d00
add esp, 4
lea edx, [esp + 0x930]
push edx
lea eax, [esp + 0xf4c]
push eax
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
add esp, 4
lea eax, [esp + 0x728]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4027c7
push str.ExtractCabFileToFolder___success_for_init.cab
mov ecx, 2
call fcn.00401d00
lea eax, [esp + 0xb3c]
lea edi, [esp + 0x72c]
mov ecx, eax
add esp, 4
xor ebx, ebx
mov edx, 0x104
sub edi, ecx
jmp 0x402bb0
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402bd0
movzx ecx, word [eax + edi]
test cx, cx
je 0x402bd0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402bb0
jmp 0x402bd4
test edx, edx
jne 0x402bdc
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x402c5a
push ebx
push str.StringCchCopy_Failed_for_szExeFilePath_with_szTempFilePath___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
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.00404cda
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 0x402c64
sub eax, edx
sar eax, 1
mov edx, 0x5c
cmp dx, word [esp + eax*2 + 0xb36]
je 0x402d12
push 0x415e7c
lea eax, [esp + 0xb3c]
call fcn.00401080
test eax, eax
jge 0x402d12
push eax
push str.StringCchCopy_Failed_for_szExeFilePath_with__T_PATH_SEP_STR___08X_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
push str.inst.exe
lea eax, [esp + 0xb3c]
call fcn.00401080
test eax, eax
jge 0x402d9e
push eax
push str.StringCchCat_Failed_for_szExeFilePath_with_INST_EXE_FILE_NAME___08X_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0xf54]
push eax
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
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.00404cda
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 0x402dc0
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402de0
movzx ecx, word [eax + edi]
test cx, cx
je 0x402de0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402dc0
jmp 0x402de4
test edx, edx
jne 0x402dec
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jge 0x402e6a
push ebx
push str.StringCchCopy_Failed_for_szArguments_with_szExeFilePath___08X_
lea ecx, [edx + 1]
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x41b2fc]
mov edx, dword [edx + 4]
xor bl, bl
test edx, edx
je 0x402ebc
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e80
sub eax, edi
sar eax, 1
je 0x402ebc
push 0x415e80
push edx
call fcn.00404e81
add esp, 8
test eax, eax
jne 0x402ebc
push str._silent_found_in_argv_1_
lea ecx, [eax + 1]
lea ebx, [esp + 0xe4]
call fcn.00401d00
add esp, 4
mov bl, 1
cmp byte [esp + 0x29], 1
je 0x402ecc
cmp bl, 1
jne 0x402f6a
push str.Silent_build__Calling_StringCchCat___for_silent.
mov ecx, 2
lea ebx, [esp + 0xe4]
call fcn.00401d00
add esp, 4
push str.__silent
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x402f6a
push eax
push str.StringCchCat_Failed_for_szArguments_with__silent___08X_
mov ecx, 1
call fcn.00401d00
lea eax, [esp + 0x938]
push eax
lea ecx, [esp + 0xf54]
push ecx
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
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.00404cda
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.00404a20
add esp, 8
lea ebx, [esp + 0xe0]
test al, al
jne 0x403001
push str.CreateSecurityAttributeForEveryone_Failed.
mov ecx, 1
call fcn.00401d00
add esp, 4
lea ecx, [esp + 0x930]
push ecx
lea edx, [esp + 0xf4c]
push edx
call fcn.00401340
push esi
call fcn.004057bb
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.00403ae0
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.00404cda
mov esp, ebp
pop ebp
ret 0x10
push str.GlobalStart_Extraction
push str.Before_calling_CreateEventW_for___s_
mov ecx, 2
call fcn.00401d00
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 0x4030a0
push eax
push str.GlobalStart_Extraction
push str.CreateEvent_failed_for___s_._ErrorCode:_lu_
mov ecx, 1
call fcn.00401d00
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 0x40308e
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c90
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004057bb
add esp, 4
jmp 0x402c18
mov ecx, 2
cmp eax, 0xb7
jne 0x403126
push str.GlobalStart_Extraction
push str.Event___s__already_exists
call fcn.00401d00
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 0x4030f5
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c90
mov edx, dword [esp + 0x10]
push edx
call fcn.004057bb
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call esi
lea ecx, [esp + 0x728]
push ecx
call fcn.00403ae0
add esp, 4
lea edx, [esp + 0x728]
push edx
jmp 0x402c3b
push str.GlobalExtraction_Complete
push str.Before_calling_CreateEventW_for___s_
call fcn.00401d00
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 0x403166
push eax
push str.GlobalExtraction_Complete
lea ebx, [esp + 0xe8]
jmp 0x40304b
cmp eax, 0xb7
jne 0x4031a6
push str.GlobalExtraction_Complete
push str.Event___s__already_exists
mov ecx, 2
lea ebx, [esp + 0xe8]
call fcn.00401d00
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0xf54]
push eax
call fcn.00401340
add esp, 0x10
push esi
jmp 0x4030d4
lea eax, [esp + 0x34]
test eax, eax
je 0x4031c1
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c90
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 0x4031d0
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 0x4031f0
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 0x403210
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.00401d00
add esp, 0x10
push str.__filesize
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x4032e5
push eax
push str.StringCchCat___for_szArguments_FAILED._hResult__08X_.
mov ecx, 2
lea ebx, [esp + 0xe8]
call fcn.00401d00
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 0x4032cc
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c90
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004057bb
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call esi
jmp 0x402c23
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 0x416d24
lea ecx, [edx + 0x14]
lea ebx, [esp + 0x708]
mov word [esp + 0x708], dx
call fcn.00401440
add esp, 8
test eax, eax
jge 0x403363
push eax
push str.StringCchPrintf___for_szCabSize_FAILED._hResult__08X_.
jmp 0x403281
lea edx, [esp + 0x700]
push edx
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x403401
push eax
push str.StringCchCat___for_szArguments_FAILED._hResult__08X_.
mov ecx, 2
lea ebx, [esp + 0xe8]
call fcn.00401d00
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 0x4033d0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
call fcn.00404c90
mov eax, dword [esp + 0x10]
push eax
call fcn.004057bb
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call esi
lea edx, [esp + 0x728]
push edx
call fcn.00403ae0
add esp, 4
lea eax, [esp + 0x728]
push eax
jmp 0x402c3b
cmp dword [0x41b260], 0
je 0x403468
push 0x415fcc
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x403439
push eax
push str.StringCchCat_Failed_for_CMD_PARAM_INSTLOG___08X_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
add esp, 8
push str._InstLog
lea eax, [esp + 0xd44]
call fcn.00401080
test eax, eax
jge 0x403468
push eax
push str.StringCchCat_Failed_for_CMD_PARAM_INSTLOG___08X_
mov ecx, 1
lea ebx, [esp + 0xe8]
call fcn.00401d00
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 0x40350c
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.00401d00
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.004057bb
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call edi
jmp 0x4033e4
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.00401d00
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 0x4035b0
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.00401d00
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.004057bb
add esp, 4
jmp 0x4033e4
cmp eax, 1
jne 0x40377d
push str.After_calling_WaitForMultipleObjects__._Extraction_completed.
lea ecx, [eax + 1]
lea ebx, [esp + 0xe4]
call fcn.00401d00
add esp, 4
push str.Extracting_init.cab.
mov ecx, 2
call fcn.00401d00
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.004041c0
add esp, 8
test al, al
jne 0x403673
push str.update.cab
push str.ExtractAttachedFile_Failed_for___s_.
mov ecx, 1
call fcn.00401d00
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.004057bb
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call edi
lea ecx, [esp + 0x728]
push ecx
call fcn.00403ae0
add esp, 4
lea edx, [esp + 0x728]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4027c7
mov eax, dword [esp + 0x10]
push eax
call fcn.004057bb
add esp, 4
push str.After_calling_WaitForMultipleObjects__._Extraction_completed.
mov ecx, 2
lea ebx, [esp + 0xe4]
call fcn.00401d00
add esp, 4
push str.GlobalExtraction_Complete
push str.Before_calling_SetEvent___for___s__event.
mov ecx, 2
call fcn.00401d00
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4036fd
push str.GlobalExtraction_Complete
push str.SetEvent___FAILED_for___s__event.
lea ecx, [eax + 1]
call fcn.00401d00
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 0x403109
push str.Before_calling_WaitForSingleObject__for_process_inst.exe.
mov ecx, 2
call fcn.00401d00
mov eax, dword [esp + 0x80]
add esp, 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x40377d
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.00401d00
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 0x402c23
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.00403ae0
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.00401d00
mov eax, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3148]
xor ecx, esp
call fcn.00404cda
mov esp, ebp
pop ebp
ret 0x10
push str.GetRandomTemporaryFolder_Failed.
mov ecx, 1
lea ebx, [esp + 0xe4]
call fcn.00401d00
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 0x403852
cmp eax, 0x800
jbe 0x40389c
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 0x403870
lea ecx, [edx + 0x7ffff7fe]
test ecx, ecx
je 0x403890
movzx ecx, word [edi + eax]
test cx, cx
je 0x403890
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x403870
jmp 0x403894
test edx, edx
jne 0x403897
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.004057bb
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.00404cda
mov esp, ebp
pop ebp
ret 0x10