Function at 0x4012d0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
xor edi, edi
mov esi, edx
mov dword [ebp - 0x21c], edx
xor ebx, ebx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
lea ecx, [esi + 2]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x224], ebx
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401321
sub esi, ecx
sar esi, 1
cmp word [edx], 0x22
mov dword [ebp - 0x218], esi
mov eax, dword [ebp - 0x218]
sete cl
xor esi, esi
mov byte [ebp - 0x20d], cl
test eax, eax
je 0x4014aa
test cl, cl
je 0x401377
test esi, esi
je 0x40149d
cmp word [edx + esi*2], 0x22
jne 0x40149d
xor cl, cl
mov byte [ebp - 0x20d], cl
jmp 0x40149d
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x228]
push eax
lea edi, [edx + esi*2]
push str._hproc
push edi
call fcn.00401240
add esp, 0x10
test al, al
jne 0x40145a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x220]
push eax
push str._hthread
push edi
call fcn.00401240
add esp, 0x10
test al, al
jne 0x40145a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x234]
push eax
push str._app
push edi
call fcn.00401240
add esp, 0x10
test al, al
jne 0x40145a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x230]
push eax
push str._cmdline
push edi
call fcn.00401240
add esp, 0x10
test al, al
jne 0x40145a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x22c]
push eax
push str._workingdir
push edi
call fcn.00401240
add esp, 0x10
test al, al
jne 0x40145a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x224]
push eax
push str._baseoverlayname
push edi
call fcn.00401240
mov ebx, dword [ebp - 0x224]
add esp, 0x10
test al, al
jne 0x40145a
mov edi, dword [ebp - 0x228]
jmp 0x40148b
test esi, esi
je 0x40146b
cmp word [edi - 2], 0x20
jne 0x40146b
xor eax, eax
mov word [edi - 2], ax
mov eax, dword [ebp - 0x214]
mov edi, dword [ebp - 0x228]
dec eax
add esi, eax
test edi, edi
je 0x40148b
cmp dword [ebp - 0x220], 0
je 0x40148b
test ebx, ebx
jne 0x4014af
mov edx, dword [ebp - 0x21c]
mov cl, byte [ebp - 0x20d]
mov eax, dword [ebp - 0x218]
inc esi
cmp esi, eax
jb 0x401353
test ebx, ebx
jne 0x4014af
mov ebx, str.GameOverlayRenderer.dll
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x4014cb
cmp dword [ebp - 0x230], 0
je 0x4014cb
cmp dword [ebp - 0x22c], 0
jne 0x4014e0
test edi, edi
je 0x401683
cmp dword [ebp - 0x220], 0
je 0x401683
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00402650
push 0x2f
push ebx
call fcn.0040234e
add esp, 0x14
test eax, eax
jne 0x40156c
push 0x5c
push ebx
call fcn.0040234e
add esp, 8
test eax, eax
jne 0x40156c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x102
ja 0x40156c
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00403813
lea eax, [ebp - 0x20c]
push str.binx86launcher.exe
push eax
call fcn.004023ef
add esp, 0x10
test eax, eax
je 0x401563
xor ecx, ecx
mov word [eax], cx
jmp 0x40156c
xor eax, eax
mov word [ebp - 0x20c], ax
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00403580
add esp, 0xc
test edi, edi
je 0x4015cb
mov ebx, dword [ebp - 0x220]
test ebx, ebx
je 0x4015cb
push 0x10
push 0
push edi
call fcn.00403f20
push 0x10
push 0
push ebx
mov esi, eax
call fcn.00403f20
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call section..text
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040169b
mov esp, ebp
pop ebp
ret 0x10
push 0x40
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x44
push 0
push eax
call fcn.00402650
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x22c]
push 0
push 4
push 0
push 0
push 0
push dword [ebp - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40166e
push dword [ebp - 0x240]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x244]
push eax
call section..text
add esp, 0xc
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x240]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x244]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040169b
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040169b
mov esp, ebp
pop ebp
ret 0x10