Function at 0x401000
Capabilities:
Create process on windows
Get file size
Read file on windows
Set current directory

Disassembly:
sub esp, 0x268
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x284]
push 0x40502c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
call fcn.00401460
add esp, 8
test eax, eax
je 0x401276
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x40502c
push 0
call fcn.00401460
add esp, 8
test eax, eax
je 0x401276
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401276
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov dword [esp + 0x18], eax
call fcn.004013b0
add esp, 4
lea edx, [esp + 0x2c]
mov edi, eax
push 0
push edx
push ebx
push edi
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4074a0
push 0
call fcn.00401460
add esp, 8
mov ebp, eax
push 0x29
push edi
call fcn.004012f0
add esp, 8
test eax, eax
je 0x40126d
push 0x405028
push edi
call fcn.00401460
add esp, 8
test eax, eax
je 0x40126d
push 0x405024
push 0
call fcn.00401460
mov esi, eax
add esp, 8
test esi, esi
je 0x40126d
test ebp, ebp
jne 0x401124
mov eax, dword [esp + 0x14]
push eax
jmp 0x401135
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ebx + 2]
push ecx
call fcn.004013b0
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x4011af
mov edi, str.___
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
xor eax, eax
push ecx
push edx
push eax
push eax
push 8
push 1
push eax
push eax
push ebx
push eax
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401245
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push 0xffffffffffffffff
mov eax, dword [esp + 0x20]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x401217
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call fcn.00401290
add esp, 4
push ebx
call fcn.00401290
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 0x10
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00401290
add esp, 4
push ebx
call fcn.00401290
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 0x10
push edi
call fcn.00401290
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x268
ret 0x10