Function at 0x436fa0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
push ebx
mov edi, ecx
mov dword [ebp - 0x268], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], ebx
mov word [ebp - 0x25c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436ff4
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x260]
call fcn.00401ce4
push 1
push 0xffffffffffffffff
push 0x4d0ef8
lea ecx, [ebp - 0x260]
call fcn.0041b7a0
cmp eax, 0xffffffff
jne 0x43705b
cmp dword [ebp - 0x248], 8
jb 0x437047
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0048e976
add esp, 4
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, ecx
ja 0x437076
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x260]
call fcn.004017db
jmp 0x437085
sub eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040d213
push ebx
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x31c], 0x4d42cc
mov dword [ebp - 0x314], 0x4d42c4
mov dword [ebp - 0x2c8], 0x4d41bc
call fcn.004365c0
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x310]
mov dword [ebp + eax - 0x31c], 0x4d4290
call fcn.004343d0
mov edx, dword [ebp - 0x314]
mov ecx, dword [edi]
mov dword [ebp - 0x310], 0x4d4234
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
mov eax, dword [edx + 4]
mov edx, dword [ebp + eax - 0x304]
mov ecx, dword [ecx + 8]
lea eax, [ebp + eax - 0x314]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x314]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push 0x4d42f8
push ecx
lea eax, [ebp + eax - 0x314]
mov edi, 8
or dword [eax + 0x10], edi
push 0x4d42d4
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x314]
push 0x4d3620
push ecx
call fcn.00436660
add esp, 8
push eax
call fcn.00436840
add esp, 8
push eax
call fcn.00436660
add esp, 8
mov ecx, eax
call fcn.00436ea0
push eax
call fcn.00436a70
add esp, 8
mov ecx, eax
call fcn.00436ea0
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x310]
call fcn.00435170
mov eax, dword [ebp - 0x280]
cmp dword [ebp - 0x26c], edi
jae 0x4371a7
lea eax, [ebp - 0x280]
push esi
push eax
call fcn.00491d23
add esp, 4
mov esi, eax
mov dword [ebp - 0x264], esi
cmp dword [ebp - 0x26c], edi
jb 0x4371d0
mov eax, dword [ebp - 0x280]
push eax
call fcn.0048e976
add esp, 4
push 0x40
lea edx, [ebp - 0x35c]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], cx
call fcn.0048f0d0
add esp, 0xc
push ebx
xor eax, eax
push 0x105
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x360], 0x44
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x224], ax
call fcn.0040d213
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x210], edi
jae 0x437243
lea eax, [ebp - 0x224]
mov ecx, dword [ebp - 0x214]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x4374b2
cmp eax, dword [ebp - 0x214]
ja 0x4374b2
push ebx
xor edx, edx
push 0x105
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], ebx
mov word [ebp - 0x240], dx
call fcn.0040d213
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], edi
jae 0x4372a3
lea eax, [ebp - 0x240]
mov ecx, dword [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x437462
cmp eax, dword [ebp - 0x230]
ja 0x437462
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], edi
jae 0x4372d9
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x43731e
lea ecx, [ebp - 0x244]
call fcn.0040199c
lea ecx, [ebp - 0x228]
call fcn.0040199c
push esi
call fcn.00490d9c
add esp, 4
lea ecx, [ebp - 0x31c]
call fcn.00434e00
lea ecx, [ebp - 0x260]
call fcn.0040199c
jmp 0x437526
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], edi
jae 0x437332
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x360]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x210], edi
jae 0x437364
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp esi, ebx
jne 0x437391
lea ecx, [ebp - 0x244]
call fcn.0040199c
lea ecx, [ebp - 0x228]
call fcn.0040199c
mov edx, dword [ebp - 0x264]
push edx
jmp 0x4372fb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x294]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x268]
mov esi, eax
mov eax, dword [ebp - 0x294]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x294]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
push ecx
setne bl
call edi
mov edx, dword [ebp - 0x290]
push edx
call edi
cmp esi, 0x102
jne 0x4373ff
lea ecx, [ebp - 0x244]
call fcn.0040199c
lea ecx, [ebp - 0x228]
call fcn.0040199c
mov eax, dword [ebp - 0x264]
push eax
jmp 0x4372fb
test bl, bl
je 0x437410
cmp dword [ebp - 0x268], 0
jne 0x437410
mov bl, 1
jmp 0x437412
xor bl, bl
lea ecx, [ebp - 0x244]
call fcn.0040199c
lea ecx, [ebp - 0x228]
call fcn.0040199c
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.00490d9c
add esp, 4
lea ecx, [ebp - 0x31c]
call fcn.00434e00
lea ecx, [ebp - 0x260]
call fcn.0040199c
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x244]
call fcn.0040199c
lea ecx, [ebp - 0x228]
call fcn.0040199c
push esi
call fcn.00490d9c
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.004348c0
lea edx, [ebp - 0x2c8]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0048e01b
add esp, 4
lea ecx, [ebp - 0x260]
call fcn.0040199c
jmp 0x437526
cmp dword [ebp - 0x210], edi
jb 0x4374c9
mov eax, dword [ebp - 0x224]
push eax
call fcn.0048e976
add esp, 4
xor ecx, ecx
push esi
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x224], cx
call fcn.00490d9c
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.004348c0
lea edx, [ebp - 0x2c8]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0048e01b
add esp, 4
cmp dword [ebp - 0x248], edi
jb 0x437526
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0048e976
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 8