Function at 0x407cbc
Capabilities:
Check if file exists
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42432b
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x42f050]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x42f050]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [0x4312e4]
mov edi, 0x4312e4
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
and dword [esp + 0x4a0], 0
sub esi, dword [0x431ef4]
lea eax, [esp + 0x2c]
push esi
push str.downloadTime_d
call fcn.004044fa
mov ebx, dword [esp + 0x34]
pop ecx
add ebx, 0xfffffff0
mov eax, ebx
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00404184
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [esp + 0x4a8], 1
mov eax, esp
mov dword [esp + 0x2c], esp
push str.AllTaskFinished
push eax
call fcn.004036aa
mov byte [esp + 0x4a8], 0
call fcn.00401c99
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
push dword [eax + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407dc2
mov byte [esp + 0x17], al
mov eax, ebx
call fcn.00404c04
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0040db28
mov esp, ebp
pop ebp
ret
and word [esp + 0x8c], 0
push 0x3fe
lea eax, [esp + 0x92]
push 0
push eax
call fcn.00410b00
add esp, 0xc
mov ecx, edi
lea esi, [esp + 0x40]
call fcn.00403dce
mov ecx, edi
lea esi, [esp + 0x48]
call fcn.00403dce
mov ecx, edi
lea esi, [esp + 0x4c]
call fcn.00403dce
lea ebx, [esp + 0x18]
mov byte [esp + 0x4a0], 2
call fcn.004084b6
mov byte [esp + 0x4a0], 3
mov esi, dword [esp + 0x1c]
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x30]
push ecx
call fcn.00408538
mov byte [esp + 0x4a0], 2
cmp dword [esp + 0x18], 0
je 0x407e4d
mov edi, dword [esp + 0x18]
call fcn.00401000
mov edi, 0x4312e4
push dword [esi + 0x40]
lea eax, [esp + 0x90]
push str.__s_
push 0x200
push eax
call fcn.0040dcd7
push 0x38
lea eax, [esp + 0x68]
push 0
push eax
mov dword [esp + 0x6c], 0x3c
call fcn.00410b00
lea eax, [esp + 0xa8]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x64]
add esp, 0x1c
mov dword [esp + 0x54], 0x40
mov dword [esp + 0x6c], 1
mov dword [esp + 0x64], eax
call fcn.00407b55
test al, al
mov dword [esp + 0x5c], str.open
jne 0x407ebc
mov dword [esp + 0x5c], str.runas
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push 0x428536
push eax
call fcn.004036aa
push ecx
mov byte [esp + 0x4a8], 4
mov eax, esp
mov dword [esp + 0x2c], esp
push str.runInstallExe
push eax
call fcn.004036aa
mov byte [esp + 0x4a8], 2
call fcn.00401c99
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
pop ecx
call ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x407f9d
cmp dword [0x43059c], 0xffffffff
je 0x407f93
mov eax, dword [0x4312e4]
and dword [esp + 0x20], 0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push str.CInstallTask_DoTask_ShellExecuteExW_Success_n
lea eax, [esp + 0x1c]
mov byte [esp + 0x4a4], 5
call fcn.004044af
mov edi, dword [esp + 0x1c]
pop ecx
push edi
lea eax, [esp + 0x20]
push eax
call fcn.004036ef
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x24]
push edx
push ecx
push eax
push dword [0x43059c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00404c04
lea eax, [edi - 0x10]
mov byte [esp + 0x4a0], 2
call fcn.00404c04
mov byte [esp + 0x17], 1
jmp 0x40805a
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push 0x428536
push eax
call fcn.004036aa
push ecx
mov byte [esp + 0x4a8], 6
mov eax, esp
mov dword [esp + 0x28], esp
push str.runInstallExeFailed
push eax
call fcn.004036aa
mov byte [esp + 0x4a8], 2
call fcn.00401c99
cmp dword [0x43059c], 0xffffffff
pop ecx
pop ecx
je 0x408055
mov eax, dword [0x4312e4]
and dword [esp + 0x24], 0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push str.CInstallTask_DoTask_ShellExecuteExW_Failed_n
lea eax, [esp + 0x1c]
mov byte [esp + 0x4a4], 7
call fcn.004044af
mov edi, dword [esp + 0x1c]
pop ecx
push edi
lea eax, [esp + 0x24]
push eax
call fcn.004036ef
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x28]
push edx
push ecx
push eax
push dword [0x43059c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00404c04
lea eax, [edi - 0x10]
mov byte [esp + 0x4a0], 2
call fcn.00404c04
mov byte [esp + 0x17], 0
push 0x927c0
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call ebx
sub eax, dword [esp + 0x28]
push eax
push str.installTime_d
lea eax, [esp + 0x34]
call fcn.004044fa
mov ebx, dword [esp + 0x34]
pop ecx
add ebx, 0xfffffff0
mov eax, ebx
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.00404184
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [esp + 0x4a8], 8
mov eax, esp
mov dword [esp + 0x2c], esp
push str.runInstallExeSuccess
push eax
call fcn.004036aa
mov byte [esp + 0x4a8], 2
call fcn.00401c99
pop ecx
pop ecx
lea edi, [esi + 8]
call fcn.004080e5
lea esi, [esp + 0x30]
call fcn.004021d6
mov al, byte [esp + 0x17]
mov byte [esp + 0x17], al
jmp 0x407d93