Function at 0x4012c0
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 [0x413004]
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 0x401311
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 0x40149a
test cl, cl
je 0x401367
test esi, esi
je 0x40148d
cmp word [edx + esi*2], 0x22
jne 0x40148d
xor cl, cl
mov byte [ebp - 0x20d], cl
jmp 0x40148d
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 0x40144a
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 0x40144a
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 0x40144a
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 0x40144a
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 0x40144a
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 0x40144a
mov edi, dword [ebp - 0x228]
jmp 0x40147b
test esi, esi
je 0x40145b
cmp word [edi - 2], 0x20
jne 0x40145b
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 0x40147b
cmp dword [ebp - 0x220], 0
je 0x40147b
test ebx, ebx
jne 0x40149f
mov edx, dword [ebp - 0x21c]
mov cl, byte [ebp - 0x20d]
mov eax, dword [ebp - 0x218]
inc esi
cmp esi, eax
jb 0x401343
test ebx, ebx
jne 0x40149f
mov ebx, str.GameOverlayRenderer.dll
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x4014bb
cmp dword [ebp - 0x230], 0
je 0x4014bb
cmp dword [ebp - 0x22c], 0
jne 0x4014d0
test edi, edi
je 0x401673
cmp dword [ebp - 0x220], 0
je 0x401673
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00402530
push 0x2f
push ebx
call fcn.004021f2
add esp, 0x14
test eax, eax
jne 0x40155c
push 0x5c
push ebx
call fcn.004021f2
add esp, 8
test eax, eax
jne 0x40155c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x102
ja 0x40155c
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004036e3
lea eax, [ebp - 0x20c]
push str.binx86launcher.exe
push eax
call fcn.004022b9
add esp, 0x10
test eax, eax
je 0x401553
xor ecx, ecx
mov word [eax], cx
jmp 0x40155c
xor eax, eax
mov word [ebp - 0x20c], ax
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00403450
add esp, 0xc
test edi, edi
je 0x4015bb
mov ebx, dword [ebp - 0x220]
test ebx, ebx
je 0x4015bb
push 0x10
push 0
push edi
call fcn.00403df0
push 0x10
push 0
push ebx
mov esi, eax
call fcn.00403df0
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.0040168b
mov esp, ebp
pop ebp
ret 0x10
push 0x40
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x44
push 0
push eax
call fcn.00402530
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 0x40165e
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.0040168b
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.0040168b
mov esp, ebp
pop ebp
ret 0x10