Function at 0x465828
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0x418
mov eax, 0x5c46c3
call fcn.004b8fda
mov dword [ebp - 0x414], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
call fcn.00449ab2
mov ecx, eax
call fcn.004510c4
lea eax, [ebp - 0x364]
push eax
call fcn.00449ab2
mov ecx, eax
call fcn.004506c0
xor eax, eax
lea ecx, [ebp - 0x394]
push esi
mov dword [ebp - 4], eax
call fcn.00420790
xor eax, eax
lea ecx, [ebp - 0x3f4]
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x364]
push eax
call fcn.00422ad0
lea eax, [ebp - 0x394]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3dc]
call fcn.00422ad0
push 3
pop eax
mov dword [ebp - 0x41c], eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x3f4]
push eax
call fcn.0043dea0
lea eax, [ebp - 0x3dc]
push eax
call fcn.0043dea0
cmp dword [ebp - 0x350], 8
lea eax, [ebp - 0x364]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x364]
pop ecx
pop ecx
push eax
call ebx
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x3dc]
mov dword [ebp - 0x424], ecx
lea ecx, [ebp - 0x3f4]
push eax
call fcn.0043ebef
test eax, eax
je 0x465931
cmp dword [ebp - 0x350], 8
lea eax, [ebp - 0x364]
cmovae eax, dword [ebp - 0x364]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00420790
call fcn.0043dfe5
add esp, 0x18
mov ecx, dword [ebp - 0x414]
call fcn.00465fb7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005991a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.0043b037
mov dword [esp], 0x5cc970
push str.7zData
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x465f5d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x1869f
push 0x2710
mov edi, eax
call fcn.0043c813
cdq
push edx
push eax
lea eax, [ebp - 0x3c4]
push eax
call fcn.0043d660
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push str.SmartCloud
push eax
call fcn.0059c389
lea eax, [ebp - 0x218]
push 0x5c8b40
push eax
call fcn.0059c389
cmp dword [ebp - 0x3b0], 8
lea eax, [ebp - 0x3c4]
cmovae eax, dword [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0059c389
lea eax, [ebp - 0x218]
push str._7zData.7z
push eax
call fcn.0059c389
add esp, 0x34
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x465a3f
lea eax, [ebp - 0x218]
push eax
call fcn.0043b5c7
pop ecx
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
inc eax
push eax
push ebx
push eax
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x465a89
push ebx
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push edi
push dword [ebp - 0x414]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
xor edi, edi
lea eax, [ebp - 0x31c]
push edi
push eax
call fcn.005991a0
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043de2c
add esp, 0x14
call fcn.00449ab2
mov ecx, eax
call fcn.00450d3b
call fcn.00449ab2
mov ecx, eax
call fcn.0044fec5
cmp dword [ebp - 0x380], 8
lea ecx, [ebp - 0x410]
push ecx
push fcn.00465f9e
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x410], edi
lea eax, [ebp - 0x394]
cmovae eax, dword [ebp - 0x394]
push ecx
push eax
call fcn.0046be54
add esp, 0x10
mov dword [ebp - 0x33c], edi
xor eax, eax
lea ecx, [ebp - 0x34c]
mov esi, 0x625cd8
mov word [ebp - 0x34c], ax
push 7
pop ebx
push edi
push esi
mov dword [ebp - 0x338], ebx
call fcn.00420960
push edi
xor eax, eax
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x36c], edi
mov word [ebp - 0x37c], ax
call fcn.00420960
push edi
xor eax, eax
mov byte [ebp - 4], 6
push esi
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x324], edi
mov word [ebp - 0x334], ax
call fcn.00420960
lea eax, [ebp - 0x394]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x3ac]
call fcn.00422ad0
mov esi, str.1.4.8.10806
mov byte [ebp - 4], 8
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3ac]
call fcn.00422d00
mov esi, 0x626e18
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3ac]
call fcn.00422d00
mov esi, str.SCMutual.exe
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3ac]
call fcn.00422d00
call fcn.00449ab2
mov ecx, eax
call fcn.00450737
mov ebx, eax
call fcn.00449ab2
mov ecx, eax
call fcn.00450700
mov edi, eax
lea ecx, [ebp - 0x40c]
push edi
call fcn.00420790
mov esi, 0x5cc9c0
mov byte [ebp - 4], 9
push esi
call fcn.0059c41c
pop ecx
push eax
push 0
push esi
lea ecx, [ebp - 0x40c]
call fcn.004237c0
mov dword [ebp - 0x418], eax
call fcn.00449ab2
mov ecx, eax
call sym.setup_SmartCloudPYInput.exe_public_virtual:_int___thiscall_DuiLib::CControlUI::GetMinWidth_void_const
xor esi, esi
test eax, eax
push 1
pop eax
cmovne esi, eax
call fcn.00449ab2
mov ecx, eax
call sym.setup_SmartCloudPYInput.exe_public_virtual:_int___thiscall_DuiLib::CControlUI::GetFixedWidth_void_const
mov edx, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
neg eax
inc ecx
test edx, edx
cmove ecx, esi
xor esi, esi
inc esi
mov dword [ebp - 0x414], ecx
test edx, edx
cmove esi, eax
call fcn.00449ab2
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
push str.InstallSpreadOperate
mov dword [ebp - 0x420], ecx
call fcn.0059c41c
pop ecx
push eax
push str.InstallSpreadOperate
lea ecx, [ebp - 0x37c]
call fcn.00420960
push ebx
call fcn.0059c41c
pop ecx
test eax, eax
je 0x465ce9
push str.__OldClientID
call fcn.0059c41c
pop ecx
push eax
push str.__OldClientID
lea ecx, [ebp - 0x334]
call fcn.00420960
xor eax, eax
cmp word [ebx], ax
je 0x465cd5
push ebx
call fcn.0059c41c
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x334]
call fcn.00422d00
mov ebx, str.___NewClientID
jmp 0x465cee
mov ebx, str.__NewClientID
push ebx
call fcn.0059c41c
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x334]
call fcn.00422d00
xor ebx, ebx
cmp word [edi], bx
jne 0x465d0d
mov eax, ebx
jmp 0x465d14
push edi
call fcn.0059c41c
pop ecx
push eax
push edi
lea ecx, [ebp - 0x334]
call fcn.00422d00
cmp dword [ebp - 0x418], 0xffffffff
je 0x465d43
mov edi, str.___InstallMoniter_true
push edi
call fcn.0059c41c
pop ecx
push eax
push edi
lea ecx, [ebp - 0x334]
call fcn.00422d00
test esi, esi
jne 0x465d60
mov esi, str.___InstallService_false
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00422d00
cmp dword [ebp - 0x414], 0
jne 0x465d82
mov esi, str.___InstallStartMenu_false
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00422d00
cmp dword [ebp + 0xc], 0
jne 0x465da1
mov esi, str.___InstallSilent_false
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00422d00
cmp dword [ebp - 0x424], 0
je 0x465dc3
mov esi, str.___OldInstall_true
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00422d00
cmp dword [ebp - 0x420], 0
je 0x465de5
mov esi, str.___PureMode_true
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x334]
call fcn.00422d00
mov esi, 0x5c8b0c
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34c]
call fcn.00420960
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x3ac]
push eax
lea ecx, [ebp - 0x34c]
call fcn.00422e30
mov esi, 0x5c8b10
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34c]
call fcn.00422d00
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x34c]
call fcn.00422e30
mov esi, 0x5c8b3c
push esi
call fcn.0059c41c
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34c]
call fcn.00422d00
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x34c]
call fcn.00422e30
cmp dword [ebp - 0x338], 8
lea eax, [ebp - 0x34c]
cmovae eax, dword [ebp - 0x34c]
push eax
push str.cmd:_s
call fcn.0044b0af
cmp dword [ebp - 0x338], 8
lea eax, [ebp - 0x34c]
push 0x2710
cmovae eax, dword [ebp - 0x34c]
xor edi, edi
inc edi
push edi
push eax
call fcn.0043b5a0
mov ecx, dword [ebp - 0x410]
push 0x64
pop esi
mov eax, esi
sub eax, ecx
cdq
idiv dword [ebp - 0x41c]
push esi
add ecx, eax
push ecx
mov dword [ebp - 0x410], ecx
call fcn.00465f9e
mov ecx, dword [ebp - 0x410]
mov eax, esi
sub eax, ecx
cdq
idiv dword [ebp - 0x41c]
push esi
add ecx, eax
push ecx
mov dword [ebp - 0x410], ecx
call fcn.00465f9e
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push esi
call fcn.00465f9e
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x40c]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x3ac]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x334]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x37c]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x34c]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x3c4]
call fcn.004208a0
jmp 0x465f62
xor edi, edi
xor ebx, ebx
inc edi
push ebx
push edi
lea ecx, [ebp - 0x3dc]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x3f4]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x394]
call fcn.004208a0
push ebx
push edi
lea ecx, [ebp - 0x364]
call fcn.004208a0
call fcn.004b8f84
ret 0xc