Function at 0x401810
Capabilities:
Create process on windows
Print debug messages
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4217b6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a8
mov eax, dword [0x42e010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebx + 0x18], 0
jne 0x401865
xor esi, esi
jmp 0x401b1e
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0x44
push ecx
lea ecx, [ebp - 0x1b8]
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call fcn.00402d50
mov edx, 0x42ac30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b8]
call fcn.00404d50
cmp dword [ebx + 0x1c], 8
lea edx, [ebx + 8]
push dword [ebx + 0x18]
cmovae edx, dword [ebx + 8]
mov ecx, eax
call fcn.00405990
add esp, 4
mov edx, 0x42ac30
mov ecx, eax
call fcn.00404d50
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
lea ecx, [ebp - 0x1b8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402c60
cmp dword [eax + 0x14], 8
jb 0x401904
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push esi
push 0x400
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x18]
mov edi, eax
cmp ecx, 8
jb 0x401962
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401958
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b74
push ecx
push edx
call fcn.00409477
add esp, 8
test esi, esi
je 0x40196d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
test edi, edi
jne 0x401a97
push ecx
lea ecx, [ebp - 0x120]
call fcn.00402d50
mov edx, str.ExecGame:_CreateProcess_Error_
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.00404d50
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00402f90
mov edx, 0x42ac34
mov ecx, eax
call fcn.00404d50
cmp dword [ebx + 0x1c], 8
lea edx, [ebx + 8]
push dword [ebx + 0x18]
cmovae edx, dword [ebx + 8]
mov ecx, eax
call fcn.00405990
add esp, 4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x120]
push eax
call fcn.00402c60
cmp dword [eax + 0x14], 8
jb 0x4019e0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x401a21
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b79
push ecx
push edx
call fcn.00409477
add esp, 8
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x124], eax
lea ecx, [ebp - 0x11c]
call fcn.004028b0
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x124], eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0xd0], vtable.std::ios_base.0
call fcn.00408a6b
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1b8]
xor esi, esi
test edi, edi
cmovne esi, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x1bc], eax
lea ecx, [ebp - 0x1b4]
call fcn.004028b0
mov eax, dword [ebp - 0x1b8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1bc], eax
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00408a6b
add esp, 4
mov ecx, dword [ebx + 0x1c]
cmp ecx, 8
jb 0x401b54
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b7e
push ecx
push edx
call fcn.00409477
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409469
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040df2f
call fcn.0040df2f
call fcn.0040df2f
int3