Function at 0x479030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509ac5
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
mov dword [ebp - 0x384], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x47945d
cmp eax, 0x104
je 0x47945d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00407370
push 1
push 0xffffffffffffffff
push 0x514704
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.0045cae0
cmp eax, 0xffffffff
jne 0x4790d1
mov byte [ebp - 0x37d], 0
jmp 0x47943e
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x224]
cmp ecx, eax
ja 0x479100
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x224], ecx
cmovae eax, dword [ebp - 0x234]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x479110
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x234]
call fcn.0040de20
push 0xb0
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x31c], 0x519500
mov dword [ebp - 0x30c], 0x519508
mov dword [ebp - method.std::ios_base.virtual_0], 0x519464
push 0
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x384], 1
call fcn.00478440
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x31c], 0x5194fc
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x320], eax
lea ecx, [ebp - 0x304]
call fcn.00478590
mov dword [ebp - 0x304], 0x5194c0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x30c]
push edi
push 0x519510
mov byte [ebp - 4], 4
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x30c]
push edx
push 0x519514
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 4]
or dword [ebp + eax - 0x2f8], 8
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x30c]
push 0x51746c
push eax
call fcn.00477b10
add esp, 8
push eax
call fcn.00477db0
add esp, 8
push eax
call fcn.00477b10
add esp, 8
mov ecx, eax
call fcn.00478990
push eax
call fcn.004777b0
add esp, 8
mov ecx, eax
call fcn.00478990
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x31c]
call fcn.0047b6b0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x479266
mov eax, dword [eax]
push eax
call fcn.0040df6a
mov esi, eax
add esp, 4
mov dword [ebp - 0x384], esi
cmp dword [ebp - 0x388], 8
mov byte [ebp - 4], 7
jb 0x479292
push dword [ebp - 0x39c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x388], 7
push 0x40
push eax
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x378]
push eax
mov dword [ebp - 0x38c], 0
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x37c], 0x44
xorps xmm0, xmm0
lea ecx, [ebp - 0x338]
movdqu xmmword [ebp - 0x26c], xmm0
call fcn.00465210
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 8
call fcn.00465520
test al, al
jne 0x4792ff
mov byte [ebp - 0x37d], al
jmp 0x4793f6
lea eax, [ebp - 0x25c]
push eax
call fcn.0042b0d0
add esp, 4
cmp dword [ebp - 0x24c], 0
mov byte [ebp - 4], 9
je 0x4793e4
cmp dword [ebp - 0x248], 8
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x37c]
push ecx
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4793e4
lea eax, [ebp - 0x26c]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x244]
movdqu xmmword [ebp - 0x244], xmm0
call fcn.00435560
push 0xffffffffffffffff
push dword [ebp - 0x244]
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne al
cmp edi, 0x102
je 0x4793cc
test al, al
je 0x4793cc
cmp dword [ebp - 0x21c], 0
mov byte [ebp - 0x37d], 1
je 0x4793d3
mov byte [ebp - 0x37d], 0
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 9
call fcn.004359e0
jmp 0x4793eb
mov byte [ebp - 0x37d], 0
lea ecx, [ebp - 0x25c]
call fcn.00408450
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 7
call fcn.00465250
mov byte [ebp - 4], 4
test esi, esi
je 0x479416
push esi
call fcn.004039c2
add esp, 4
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0
call fcn.00478880
lea eax, [ebp - 0x2b4]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004dd4ce
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x479455
push dword [ebp - 0x234]
call fcn.0040823e
add esp, 4
mov al, byte [ebp - 0x37d]
jmp 0x47945f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret 4