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

Disassembly:
sub esp, 0x270
mov ax, word [0x406040]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28c]
mov word [esp + 0x12], ax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40603c
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x18], 0
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 + 0x80]
push ecx
call fcn.00401590
add esp, 8
test eax, eax
je 0x401310
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x40603c
push 0
call fcn.00401590
add esp, 8
test eax, eax
je 0x401310
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 0x401310
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov dword [esp + 0x24], eax
call fcn.0040151c
add esp, 4
lea edx, [esp + 0x34]
mov edi, eax
push 0
push edx
push ebx
push edi
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40649c
push 0
call fcn.00401590
push 0x29
push edi
mov ebp, eax
call fcn.00401460
add esp, 0x10
test eax, eax
je 0x401307
push 0x406038
push edi
call fcn.00401590
add esp, 8
test eax, eax
je 0x401307
push 0x406034
push 0
call fcn.00401590
mov esi, eax
add esp, 8
test esi, esi
je 0x401307
test ebp, ebp
jne 0x401137
mov eax, dword [esp + 0x20]
push eax
jmp 0x401148
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.0040151c
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 0x4011c2
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 + 0x12]
push eax
push ebx
call fcn.00401590
add esp, 8
mov esi, 0x40649c
mov ecx, dword [esp + 0x14]
push eax
test ecx, ecx
je 0x4011eb
call fcn.004013cf
add esp, 4
test eax, eax
je 0x401213
push eax
push esi
call fcn.00401320
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401213
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401211
push esi
call fcn.004013a0
add esp, 4
mov esi, ebp
lea ecx, [esp + 0x12]
push ecx
push 0
call fcn.00401590
mov edi, dword [esp + 0x1c]
add esp, 8
xor edx, edx
test edi, edi
sete dl
test eax, eax
mov dword [esp + 0x14], edx
jne 0x4011d5
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push esi
push 0
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4012dc
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xffffffffffffffff
mov eax, dword [esp + 0x28]
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4012ab
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x24]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call fcn.004013a0
push ebx
call fcn.004013a0
push esi
call fcn.004013a0
mov eax, dword [esp + 0x28]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret 0x10
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004013a0
push ebx
call fcn.004013a0
push esi
call fcn.004013a0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x270
ret 0x10
push edi
call fcn.004013a0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x270
ret 0x10