Function at 0x401830
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x404da5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
mov esi, dword [esp + 0xa4]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
mov dword [esp + 0x54], 0x44
rep stosd dword es:[edi], eax
mov al, byte [esp + 0xf]
xor ebx, ebx
push esi
mov word [esp + 0x88], 5
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x14]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [esp + 0x14]
push 0x406034
lea edx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0xac], ebx
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov ecx, dword [esp + 0xb8]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
mov byte [esp + 0xb8], 1
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, ebx
jne 0x4018e5
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x28]
mov esi, eax
cmp ecx, ebx
je 0x401925
mov al, byte [ecx - 1]
cmp al, bl
je 0x401919
cmp al, 0xff
je 0x401919
dec al
mov byte [ecx - 1], al
jmp 0x401925
add ecx, 0xfffffffe
push ecx
call fcn.004049b0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], ebx
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x401957
mov al, byte [ecx - 1]
cmp al, bl
je 0x40194b
cmp al, 0xff
je 0x40194b
dec al
mov byte [ecx - 1], al
jmp 0x401957
add ecx, 0xfffffffe
push ecx
call fcn.004049b0
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], ebx
cmp ecx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
je 0x401989
mov al, byte [ecx - 1]
cmp al, bl
je 0x40197d
cmp al, 0xff
je 0x40197d
dec al
mov byte [ecx - 1], al
jmp 0x401989
add ecx, 0xfffffffe
push ecx
call fcn.004049b0
add esp, 4
cmp esi, ebx
je 0x4019c4
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x34]
push ecx
call esi
mov eax, dword [esp + 0x10]
jmp 0x4019c7
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret