Function at 0x441450
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca8eb
mov eax, dword fs:[0]
push eax
sub esp, 0x93c
mov eax, dword [0x50545c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x948], ecx
lea ecx, [ebp - 0x86c]
call fcn.00413730
mov dword [ebp - 4], 0
mov dword [ebp - 0x42c], 0x200
push str.CUpdatePatchApp::DecodeResource_enter_
call fcn.0042fb40
add esp, 4
mov dword [ebp - 0x1c], 0
push str.EST_PACK
push 0x84
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x834], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::DecodeResource_FindResource___Error:__d.
call fcn.0042fb40
add esp, 8
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x834]
push edx
push str._hrSrc_hrSrc_hrSrc_hrSrc__0x_x__hExe__0x_x
call fcn.0042fb40
add esp, 0xc
cmp dword [ebp - 0x834], 0
jne 0x44155d
cmp dword [ebp + 0x10], 0
je 0x441536
cmp dword [ebp + 0xc], 0
je 0x441536
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_FindResource_Fail__Error:__d.
call fcn.0042fb40
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_FindResource_Fail__Error:__d.
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x884], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x884]
jmp 0x441bb7
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x870], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::DecodeResource_LoadResource111__Error:__d.
call fcn.0042fb40
add esp, 8
mov eax, dword [ebp - 0x834]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x870]
push edx
push str._hGlobal___0x_x_hExe___0x_x_hrSrc___0x_x_
call fcn.0042fb40
add esp, 0x10
cmp dword [ebp - 0x870], 0
jne 0x44160d
cmp dword [ebp + 0x10], 0
je 0x4415e6
cmp dword [ebp + 0xc], 0
je 0x4415e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_LoadResource_Fail__Error:__d.
call fcn.0042fb40
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_LoadResource_Fail__Error:__d.
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x888], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x888]
jmp 0x441bb7
mov ecx, dword [ebp - 0x870]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::DecodeResource_LockResource_Error:__d.
call fcn.0042fb40
add esp, 8
mov edx, dword [ebp - 0x870]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str._CEstArchieve::DecodeResource_LockResource_lpExe___p_hGlobal___0x_x
call fcn.0042fb40
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x4416ac
cmp dword [ebp + 0x10], 0
je 0x441685
cmp dword [ebp + 0xc], 0
je 0x441685
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_LockResource_Fail__Error:__d.
call fcn.0042fb40
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_LockResource_Fail__Error:__d.
mov ecx, dword [ebp + 0xc]
push ecx
call dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x88c], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x88c]
jmp 0x441bb7
mov edx, dword [ebp - 0x834]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x830], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::SizeofResource__Error:__d.
call fcn.0042fb40
add esp, 8
mov ecx, dword [ebp - 0x834]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x830]
push eax
push str._CEstArchieve::SizeofResource__sizeOfpack___d__hExe___0x_x_hrSrc___0x_x
call fcn.0042fb40
add esp, 0x10
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x87c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::GetTempPath__Error:__d.
call fcn.0042fb40
add esp, 8
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x87c]
push edx
push str._CEstArchieve::GetTempPath__dwRetVal___d___dwBufSize___d__lpPathBuffer___s
call fcn.0042fb40
add esp, 0x10
mov eax, dword [ebp - 0x87c]
cmp eax, dword [ebp - 0x42c]
ja 0x44175d
cmp dword [ebp - 0x87c], 0
jne 0x4417ba
cmp dword [ebp + 0x10], 0
je 0x441793
cmp dword [ebp + 0xc], 0
je 0x441793
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::DecodeResource_GetTempPath_Fail__Error:__d.
call fcn.0042fb40
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_GetTempPath_Fail__Error:__d.
mov ecx, dword [ebp + 0xc]
push ecx
call dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x890], 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x890]
jmp 0x441bb7
lea edx, [ebp - 0x82c]
push edx
push 0
push 0x4dbf8c
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x428], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::GetTempFileName__Error:__d.
call fcn.0042fb40
add esp, 8
lea ecx, [ebp - 0x82c]
push ecx
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp - 0x428]
push eax
push str._CEstArchieve::GetTempFileName__uRetVal___d___lpPathBuffer___s__szTempName___s
call fcn.0042fb40
add esp, 0x10
cmp dword [ebp - 0x428], 0
jne 0x441877
cmp dword [ebp + 0x10], 0
je 0x441850
cmp dword [ebp + 0xc], 0
je 0x441850
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::DecodeResource_GetTempFileName_Fail__Error:__d.
call fcn.0042fb40
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CEstArchieve::DecodeResource_GetTempFileName_Fail__Error:__d.
mov ecx, dword [ebp + 0xc]
push ecx
call dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x894], 5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x894]
jmp 0x441bb7
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x82c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x874], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::CreateFile__Error:__d.
call fcn.0042fb40
add esp, 8
lea eax, [ebp - 0x82c]
push eax
mov ecx, dword [ebp - 0x874]
push ecx
push str._CEstArchieve::CreateFile__hTempFile__0x_x___szTempName___s
call fcn.0042fb40
add esp, 0xc
cmp dword [ebp - 0x874], 0xffffffff
jne 0x44193f
cmp dword [ebp + 0x10], 0
je 0x441918
cmp dword [ebp + 0xc], 0
je 0x441918
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x82c]
push edx
push str._CEstArchieve::DecodeResource_Create_File_Fail__File:__s__Error:__d.
call fcn.0042fb40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x82c]
push eax
push str.CEstArchieve::DecodeResource_Create_File_Fail__File:__s__Error:__d.
mov ecx, dword [ebp + 0xc]
push ecx
call dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 0x898], 6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x898]
jmp 0x441bb7
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x874]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::DecodeResource_Write___Error:__d
call fcn.0042fb40
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x82c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x874]
push edx
push str._CEstArchieve::DecodeResource_Write__hTempFile__0x_x_lpExe___p__sizeOfpack___d__dwBytesWritten___d__szTempName___s__fSuccess___d
call fcn.0042fb40
add esp, 0x1c
cmp dword [ebp - 0x14], 0
jne 0x441a13
cmp dword [ebp + 0x10], 0
je 0x4419ec
cmp dword [ebp + 0xc], 0
je 0x4419ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x82c]
push eax
push str._CEstArchieve::DecodeResource_Write_File_Fail__File:__s__Error:__d.
call fcn.0042fb40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x82c]
push ecx
push str.CEstArchieve::DecodeResource_Write_File_Fail__File:__s__Error:__d.
mov edx, dword [ebp + 0xc]
push edx
call dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 0x89c], 7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x89c]
jmp 0x441bb7
mov eax, dword [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CEstArchieve::CloseHandle___Error:__d
call fcn.0042fb40
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x874]
push edx
push str._CEstArchieve::CloseHandle_hTempFile__0x_x_fSuccess___d
call fcn.0042fb40
add esp, 0xc
push str.__tBOOL_bRetVal__FALSE___tBOOL_bRetVal__FALSE_
call fcn.0042fb40
add esp, 4
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x880], 0
jmp 0x441a81
mov eax, dword [ebp - 0x880]
add eax, 1
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0xa
jge 0x441b08
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x928], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x928]
push edx
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x86c]
call fcn.004156e0
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
je 0x441af0
mov ecx, dword [ebp - 0x880]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x82c]
push eax
push str._CEstArchieve::ExtractArch2__szTempName___s__strTargetDir___s___pContext___p__pFnc___p____n___d
call fcn.0042fb40
add esp, 0x18
jmp 0x441b08
mov ecx, dword [ebp - 0x880]
imul ecx, ecx, 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x441a72
lea edx, [ebp - 0x82c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x441b89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x82c]
push eax
push str.CEstArchieve::DecodeResource_Delete_File_Fail__File111:__s__Error:__d.
call fcn.0042fb40
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x441b78
cmp dword [ebp + 0xc], 0
je 0x441b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x82c]
push ecx
push str.CEstArchieve::DecodeResource_Delete_File_Fail__File:__s__Error:__d.
call fcn.0042fb40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x82c]
push edx
push str.CEstArchieve::DecodeResource_Delete_File_Fail__File:__s__Error:__d.
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp + 0x10]
add esp, 0x10
push 4
push 0
lea ecx, [ebp - 0x82c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x878]
neg edx
sbb edx, edx
and edx, 0xfffffff7
add edx, 9
mov dword [ebp - 0x8a0], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x850]
call fcn.00444f40
mov eax, dword [ebp - 0x8a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0049318c
mov esp, ebp
pop ebp
ret 0xc