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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x509354]
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 0x436824
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x260]
call fcn.00401cd6
push 1
push 0xffffffffffffffff
push 0x4cfe30
lea ecx, [ebp - 0x260]
call fcn.0041b660
cmp eax, 0xffffffff
jne 0x43688b
cmp dword [ebp - 0x248], 8
jb 0x436877
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0048e006
add esp, 4
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, ecx
ja 0x4368a6
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x260]
call fcn.004017cd
jmp 0x4368b5
sub eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x260]
call fcn.0040d1c3
push ebx
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x31c], 0x4d31a4
mov dword [ebp - 0x314], 0x4ce870
mov dword [ebp - 0x2c8], 0x4d309c
call fcn.00435de0
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x310]
mov dword [ebp + eax - 0x31c], 0x4d3170
call fcn.00433bf0
mov edx, dword [ebp - 0x314]
mov ecx, dword [edi]
mov dword [ebp - 0x310], 0x4d3114
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 0x4d31d0
push ecx
lea eax, [ebp + eax - 0x314]
mov edi, 8
or dword [eax + 0x10], edi
push 0x4d31ac
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x314]
push 0x4d2510
push ecx
call fcn.00435e80
add esp, 8
push eax
call fcn.00436060
add esp, 8
push eax
call fcn.00435e80
add esp, 8
mov ecx, eax
call fcn.004366d0
push eax
call fcn.00436290
add esp, 8
mov ecx, eax
call fcn.004366d0
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x310]
call fcn.00434990
mov eax, dword [ebp - 0x280]
cmp dword [ebp - 0x26c], edi
jae 0x4369d7
lea eax, [ebp - 0x280]
push esi
push eax
call fcn.004913b3
add esp, 4
mov esi, eax
mov dword [ebp - 0x264], esi
cmp dword [ebp - 0x26c], edi
jb 0x436a00
mov eax, dword [ebp - 0x280]
push eax
call fcn.0048e006
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.0048e760
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.0040d1c3
mov eax, dword [ebp - 0x224]
cmp dword [ebp - 0x210], edi
jae 0x436a73
lea eax, [ebp - 0x224]
mov ecx, dword [ebp - 0x214]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x436ce2
cmp eax, dword [ebp - 0x214]
ja 0x436ce2
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.0040d1c3
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], edi
jae 0x436ad3
lea eax, [ebp - 0x240]
mov ecx, dword [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x436c92
cmp eax, dword [ebp - 0x230]
ja 0x436c92
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], edi
jae 0x436b09
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x436b4e
lea ecx, [ebp - 0x244]
call fcn.0040198e
lea ecx, [ebp - 0x228]
call fcn.0040198e
push esi
call fcn.0049042c
add esp, 4
lea ecx, [ebp - 0x31c]
call fcn.00434620
lea ecx, [ebp - 0x260]
call fcn.0040198e
jmp 0x436d56
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x22c], edi
jae 0x436b62
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 0x436b94
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp esi, ebx
jne 0x436bc1
lea ecx, [ebp - 0x244]
call fcn.0040198e
lea ecx, [ebp - 0x228]
call fcn.0040198e
mov edx, dword [ebp - 0x264]
push edx
jmp 0x436b2b
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 0x436c2f
lea ecx, [ebp - 0x244]
call fcn.0040198e
lea ecx, [ebp - 0x228]
call fcn.0040198e
mov eax, dword [ebp - 0x264]
push eax
jmp 0x436b2b
test bl, bl
je 0x436c40
cmp dword [ebp - 0x268], 0
jne 0x436c40
mov bl, 1
jmp 0x436c42
xor bl, bl
lea ecx, [ebp - 0x244]
call fcn.0040198e
lea ecx, [ebp - 0x228]
call fcn.0040198e
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.0049042c
add esp, 4
lea ecx, [ebp - 0x31c]
call fcn.00434620
lea ecx, [ebp - 0x260]
call fcn.0040198e
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x244]
call fcn.0040198e
lea ecx, [ebp - 0x228]
call fcn.0040198e
push esi
call fcn.0049042c
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.004340e0
lea edx, [ebp - 0x2c8]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0048d6ab
add esp, 4
lea ecx, [ebp - 0x260]
call fcn.0040198e
jmp 0x436d56
cmp dword [ebp - 0x210], edi
jb 0x436cf9
mov eax, dword [ebp - 0x224]
push eax
call fcn.0048e006
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.0049042c
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.004340e0
lea edx, [ebp - 0x2c8]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0048d6ab
add esp, 4
cmp dword [ebp - 0x248], edi
jb 0x436d56
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0048e006
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 8