Function at 0x418870
Capabilities:
Create process on windows
Delete file
Get common file path
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2488
call fcn.0040ad10
mov eax, dword [0x422010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
push 0x4010
call fcn.00404845
add esp, 4
mov dword [ebp - 0x246c], eax
mov eax, dword [ebp - 0x246c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x22c], 0
jmp 0x4188f5
cmp dword [ebp - 0x22c], 1
jge 0x419510
lea edx, [ebp - 0x218]
push edx
call fcn.00418720
add esp, 4
test eax, eax
jne 0x418924
mov dword [0x4273a0], 1
jmp 0x419510
mov dword [ebp - 0x2440], 0x1000
lea eax, [ebp - 0x2440]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.00417980
add esp, 0xc
test eax, eax
jne 0x418975
lea eax, [ebp - 0x218]
push eax
push str.Downloading_header_of__s_failed
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [0x4273a0], 2
jmp 0x419510
mov ecx, dword [ebp - 0x2440]
shr ecx, 1
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 2], 0
mov eax, dword [ebp - 0x2440]
shr eax, 1
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], 0
push str._ncontentversion
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181d0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x4189da
push str.no_contentversion
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 3
jmp 0x419510
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 0x564], eax
push str._noffset
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181d0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418a4b
push str.no_offset
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 3
jmp 0x419510
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 0x1284], eax
push str._ncrc
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181d0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418abc
push str.no_crc
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 3
jmp 0x419510
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404186
add esp, 4
mov dword [ebp - 0x21c], eax
push str._ncrc2
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181d0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418b2d
push str.no_crc2
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 3
jmp 0x419510
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404186
add esp, 4
mov dword [ebp - 0x224], eax
push str._nlen
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181d0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418b9e
push str.no_len
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 3
jmp 0x419510
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 4], eax
push str._norignial
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181d0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418c0c
push str.no_orignial
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 3
jmp 0x419510
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x1280]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + eax*2 - 0x1282]
mov dword [ebp - 0x1428], ecx
mov edx, dword [ebp - 0x1428]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x418c84
mov ecx, dword [ebp - 0x1428]
add ecx, 2
mov dword [ebp - 0x1428], ecx
push str.Startpage24
mov edx, dword [ebp - 0x1428]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
lea eax, [ebp - 0x1280]
push eax
call fcn.004048af
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0x4000
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x230]
push edx
call fcn.00404845
add esp, 4
mov dword [ebp - 0x2470], eax
mov eax, dword [ebp - 0x2470]
mov dword [ebp - 0x1424], eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x1424]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00417980
add esp, 0xc
test eax, eax
jne 0x418d22
lea ecx, [ebp - 0x218]
push ecx
push str.Downloading_full__s_failed
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [0x4273a0], 4
jmp 0x419510
push 0xffffffffffffffff
mov edx, dword [ebp - 0x230]
sub edx, 0x50
push edx
mov eax, dword [ebp - 0x1424]
add eax, 0x50
push eax
call fcn.004180f0
add esp, 0xc
mov dword [ebp - 0x1430], eax
mov ecx, dword [ebp - 0x1430]
cmp ecx, dword [ebp - 0x21c]
je 0x418d76
push str.Wrong_crc
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 5
jmp 0x419510
mov dword [ebp - 0x2444], 0
jmp 0x418d91
mov edx, dword [ebp - 0x2444]
add edx, 1
mov dword [ebp - 0x2444], edx
cmp dword [ebp - 0x2444], 0x64
jge 0x418dad
mov eax, dword [ebp - 0x2444]
mov dword [ebp + eax*4 - 0x1418], 0
jmp 0x418d82
mov dword [ebp - 0x243c], 0
mov dword [ebp - 0x1434], 1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1420], ecx
cmp dword [ebp - 0x1434], 0
je 0x418fc5
mov edx, dword [ebp - 0x1420]
movzx eax, word [edx]
cmp eax, 0xa
je 0x418e01
mov ecx, dword [ebp - 0x1420]
movzx edx, word [ecx]
cmp edx, 0xd
je 0x418e01
mov eax, dword [ebp - 0x1420]
movzx ecx, word [eax]
cmp ecx, 0x20
jne 0x418e12
mov edx, dword [ebp - 0x1420]
add edx, 2
mov dword [ebp - 0x1420], edx
jmp 0x418dd7
push 0xa
mov eax, dword [ebp - 0x1420]
push eax
call fcn.00401000
add esp, 8
mov dword [ebp - 0x1288], eax
cmp dword [ebp - 0x1288], 0
je 0x418eeb
mov ecx, dword [ebp - 0x1288]
movzx edx, word [ecx]
cmp edx, 0xa
je 0x418e60
mov eax, dword [ebp - 0x1288]
movzx ecx, word [eax]
cmp ecx, 0xd
je 0x418e60
mov edx, dword [ebp - 0x1288]
movzx eax, word [edx]
cmp eax, 0x20
jne 0x418e71
mov ecx, dword [ebp - 0x1288]
sub ecx, 2
mov dword [ebp - 0x1288], ecx
jmp 0x418e36
mov edx, dword [ebp - 0x1288]
add edx, 2
mov dword [ebp - 0x1288], edx
mov eax, dword [ebp - 0x1288]
sub eax, dword [ebp - 0x1420]
sar eax, 1
mov dword [ebp - 0x2448], eax
cmp dword [ebp - 0x2448], 1
jge 0x418ea2
jmp 0x418fc5
cmp dword [ebp - 0x2448], 0x7d0
jle 0x418eba
mov dword [ebp - 0x2448], 0
jmp 0x418ed9
mov ecx, dword [ebp - 0x2448]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1420]
push edx
lea eax, [ebp - 0x2438]
push eax
call fcn.004041b0
add esp, 0xc
mov ecx, dword [ebp - 0x2448]
mov word [ebp + ecx*2 - 0x2438], 0
jmp 0x418eff
mov edx, dword [ebp - 0x1420]
push edx
lea eax, [ebp - 0x2438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx ecx, word [ebp - 0x2438]
test ecx, ecx
je 0x418fa9
push 0x2c
lea edx, [ebp - 0x2438]
push edx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x244c], eax
cmp dword [ebp - 0x244c], 0
je 0x418fa9
lea eax, [ebp - 0x2438]
push eax
call fcn.00404181
add esp, 4
mov dword [ebp - 0x2450], eax
push 0x208
call fcn.00404845
add esp, 4
mov dword [ebp - 0x2474], eax
mov ecx, dword [ebp - 0x243c]
mov edx, dword [ebp - 0x2474]
mov dword [ebp + ecx*4 - 0x1418], edx
mov eax, dword [ebp - 0x244c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x243c]
mov edx, dword [ebp + ecx*4 - 0x1418]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x243c]
mov ecx, dword [ebp - 0x2450]
mov dword [ebp + eax*4 - 0xb48], ecx
mov edx, dword [ebp - 0x243c]
add edx, 1
mov dword [ebp - 0x243c], edx
cmp dword [ebp - 0x1288], 0
jne 0x418fb4
jmp 0x418fc5
mov eax, dword [ebp - 0x1288]
mov dword [ebp - 0x1420], eax
jmp 0x418dca
mov ecx, dword [ebp - 0x1284]
mov dword [ebp - 0x1438], ecx
mov edx, dword [ebp - 0x243c]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x228]
add eax, 0x400
push eax
call fcn.00404845
add esp, 4
mov dword [ebp - 0x2478], eax
mov ecx, dword [ebp - 0x2478]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x228]
add edx, 0x400
mov dword [ebp - 0x141c], edx
cmp dword [ebp - 4], 6
jle 0x419029
mov eax, dword [ebp - 4]
sub eax, 6
mov dword [ebp - 0x2488], eax
jmp 0x419033
mov dword [ebp - 0x2488], 0
mov ecx, dword [ebp - 0x2488]
mov dword [ebp - 0x142c], ecx
mov edx, dword [ebp - 0x1284]
mov eax, dword [ebp - 0x1424]
lea ecx, [eax + edx + 1]
mov edx, dword [ebp - 0x1284]
mov eax, dword [ebp - 0x1424]
lea edx, [eax + edx + 6]
push edx
lea eax, [ebp - 0x141c]
push eax
mov eax, 5
lea esi, [ebp - 0x142c]
mov edx, dword [ebp - 0x23c]
call fcn.00401050
mov dword [ebp - 0xe6c], eax
cmp dword [ebp - 0xe6c], 0
jne 0x41909a
mov ecx, dword [ebp - 0x141c]
cmp ecx, dword [ebp - 0x228]
jge 0x4190c3
lea edx, [ebp - 0x218]
push edx
push str.LzmaUncompress_failed
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [0x4273a0], 4
jmp 0x419510
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x141c], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.004180f0
add esp, 0xc
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x224]
je 0x41911d
push str.Wrong_crc2
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 4
jmp 0x419510
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x2454], 0
jmp 0x419144
mov edx, dword [ebp - 0x2454]
add edx, 1
mov dword [ebp - 0x2454], edx
mov eax, dword [ebp - 0x2454]
cmp eax, dword [ebp - 0x240]
jge 0x419334
mov ecx, dword [ebp - 0x2454]
mov edx, dword [ebp + ecx*4 - 0x1418]
push edx
lea eax, [ebp - 0x9b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x2460], 0
movzx ecx, word [ebp - 0x9b8]
cmp ecx, 0x2a
jne 0x4191b6
mov dword [ebp - 0x2460], 1
lea edx, [ebp - 0x9b6]
push edx
lea eax, [ebp - 0x1280]
push eax
push 0x41fb58
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4191d9
lea edx, [ebp - 0x9b8]
push edx
lea eax, [ebp - 0x1280]
push eax
push str._s_s
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, dword [ebp - 0x2454]
mov eax, dword [ebp + edx*4 - 0xb48]
mov dword [ebp - 0x245c], eax
push str..exe
lea ecx, [ebp - 0x9b8]
push ecx
call fcn.004181d0
add esp, 8
test eax, eax
je 0x41927b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x384
div ecx
mov dword [ebp - 0x2464], edx
lea edx, [ebp - 0x7b0]
push edx
call fcn.00418070
add esp, 4
test eax, eax
je 0x419267
mov eax, dword [ebp - 0x2464]
add eax, 1
mov dword [ebp - 0x2464], eax
lea ecx, [ebp - 0x9b8]
push ecx
mov edx, dword [ebp - 0x2464]
push edx
lea eax, [ebp - 0x1280]
push eax
push str._s_u__s
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x419219
lea edx, [ebp - 0x7b0]
push edx
lea eax, [ebp - 0x1078]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x10000000
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2458], eax
cmp dword [ebp - 0x2458], 0xffffffff
je 0x4192f7
mov dword [ebp - 0x2468], 0
push 0
lea edx, [ebp - 0x2468]
push edx
mov eax, dword [ebp - 0x245c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x2458]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x2458]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push 0
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41931d
mov dword [0x4273a0], 8
lea edx, [ebp - 0x7b0]
push edx
push str.Could_not_create__s
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x419334
mov eax, dword [ebp - 0x234]
add eax, dword [ebp - 0x245c]
mov dword [ebp - 0x234], eax
jmp 0x419135
cmp dword [ebp - 0x1424], 0
je 0x419358
mov ecx, dword [ebp - 0x1424]
mov dword [ebp - 0x247c], ecx
mov edx, dword [ebp - 0x247c]
push edx
call fcn.0040416b
add esp, 4
mov dword [ebp - 0x1424], 0
cmp dword [ebp - 0x23c], 0
je 0x419386
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x2480], eax
mov ecx, dword [ebp - 0x2480]
push ecx
call fcn.0040416b
add esp, 4
mov dword [ebp - 0x23c], 0
cmp dword [0x4273a0], 0
je 0x41939e
jmp 0x419510
cmp dword [ebp - 0x1434], 0
jne 0x4193c4
push str.No_file_found_in_zip
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x4273a0], 7
lea edx, [ebp - 0x1078]
push edx
lea eax, [ebp - 0xe68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..tmp
lea ecx, [ebp - 0xe68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0xe68]
push edx
call fcn.004184e0
add esp, 4
test eax, eax
je 0x419425
lea eax, [ebp - 0xe68]
push eax
push 0x427210
push 0x427790
push str._s__sku_s__themefile_s
lea ecx, [ebp - 0x560]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x419444
push 0x427210
push 0x427790
push str._s__sku_s
lea edx, [ebp - 0x560]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x3c
push 0
lea eax, [ebp - 0x5a0]
push eax
call fcn.00404790
add esp, 0xc
mov dword [ebp - 0x5a0], 0x3c
mov dword [ebp - 0x59c], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x598], eax
mov dword [ebp - 0x594], str.open
lea ecx, [ebp - 0x1078]
mov dword [ebp - 0x590], ecx
lea edx, [ebp - 0x560]
mov dword [ebp - 0x58c], edx
mov dword [ebp - 0x584], 1
mov dword [ebp - 0x580], 0
lea eax, [ebp - 0x5a0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4194ea
push str._wait
lea ecx, [ebp - 0x560]
push ecx
call fcn.004181d0
add esp, 8
test eax, eax
je 0x4194e8
push 0x927c0
mov edx, dword [ebp - 0x568]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x419509
mov dword [0x4273a0], 6
push str.Could_not_start_Startpage24_Install.exe
push 0x4273a8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
jmp 0x419510
jmp 0x419510
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2484], eax
mov ecx, dword [ebp - 0x2484]
push ecx
call fcn.0040416b
add esp, 4
cmp dword [0x4273a0], 0
jle 0x41954e
cmp dword [0x4273a0], 6
je 0x41954e
push 0x10
push str.Startpage24_installer
push 0x4273a8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404197
mov esp, ebp
pop ebp
ret