Function at 0x4204f0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fc7f
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x476028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x3a4], ebx
mov edi, ecx
mov dword [ebp - 0x34c], edi
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x36c], 0
call fcn.004014c0
mov dword [ebp - 0xdc], 0x46aaac
mov dword [ebp - 0xcc], 0x46aaa4
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
push 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x36c], 1
mov dword [ebp - 0x74], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x78], 0x50
movlpd qword [ebp - 0xd4], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x201
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0040dd70
push 4
call fcn.0043f40d
mov esi, eax
add esp, 4
test esi, esi
je 0x4205f8
push 1
mov dword [esi], 0
call fcn.0042b207
add esp, 4
mov dword [esi], eax
jmp 0x4205fa
xor esi, esi
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], 0
call fcn.0040d900
push eax
mov dword [ebp - 4], 3
call fcn.0040d4c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3a0]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x42064d
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x42064d
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esi]
push 0x20
mov ecx, esi
call dword [eax + 0x30]
cmp dword [ebp - 0x3c], 0
mov word [ebp - 0x34], ax
jne 0x420671
mov eax, dword [ebp - 0x68]
or eax, 4
push 0
push eax
lea ecx, [ebp - 0x74]
call fcn.0040dd70
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xd0], eax
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xe0], eax
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xc4]
call fcn.00407110
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov edx, str.Launching_process:_
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 8
call fcn.0040a670
mov esi, eax
lea eax, [ebp - 0x364]
push eax
mov ecx, edi
call fcn.004139b0
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.0040a400
mov byte [ebp - 4], 8
cmp dword [ebp - 0x350], 8
mov esi, eax
jb 0x420767
push dword [ebp - 0x364]
call fcn.0043f2ce
add esp, 4
xor eax, eax
mov edx, 0x46b6e4
mov ecx, esi
mov dword [ebp - 0x350], 7
mov dword [ebp - 0x354], 0
mov word [ebp - 0x364], ax
call fcn.0040a670
mov edx, ebx
mov ecx, eax
call fcn.0040a400
xor eax, eax
mov dword [ebp - 0x370], 7
mov dword [ebp - 0x374], 0
mov word [ebp - 0x384], ax
mov byte [ebp - 4], 0xa
cmp dword [0x4777ec], 8
mov eax, dword [0x4777e8]
mov ebx, 0x4777d8
mov esi, ebx
cmovae esi, dword [0x4777d8]
mov edx, ebx
cmovae edx, dword [0x4777d8]
lea eax, [esi + eax*2]
push eax
push edx
lea ecx, [ebp - 0x384]
call fcn.0040adb0
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xb
call fcn.00404d90
lea edx, [ebp - 0x384]
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0041edd0
cmp dword [ebp - 0x350], 8
jb 0x42082b
push dword [ebp - 0x364]
call fcn.0043f2ce
add esp, 4
xor eax, eax
cmp dword [ebp - 0x370], 8
mov dword [ebp - 0x350], 7
mov dword [ebp - 0x354], 0
mov word [ebp - 0x364], ax
jb 0x42085f
push dword [ebp - 0x384]
call fcn.0043f2ce
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xc4]
call fcn.00404e10
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xe0], eax
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xd0], eax
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xe0], eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.0042af96
add esp, 4
lea eax, [ebp - 0x284]
push 0x44
push 0
push eax
call fcn.004450a0
xorps xmm0, xmm0
add esp, 8
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x284], 0x44
movq qword [ebp - 0x344], xmm0
movq qword [ebp - 0x33c], xmm0
call fcn.004014c0
sub esp, 8
lea ecx, [ebp - 0x334]
call fcn.00404c60
lea eax, [ebp - 0x39c]
push eax
mov ecx, edi
mov dword [ebp - 4], 0xd
call fcn.004139b0
mov esi, eax
lea ecx, [ebp - 0x324]
mov byte [ebp - 4], 0xe
call fcn.00424040
mov edx, esi
mov ecx, eax
call fcn.0040a400
mov ecx, eax
call fcn.00424040
mov edx, 0x46b700
mov ecx, eax
call fcn.0040a140
mov edx, dword [ebp - 0x3a4]
mov ecx, eax
call fcn.0040a400
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x388], 8
jb 0x4209d3
push dword [ebp - 0x39c]
call fcn.0043f2ce
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x334]
call fcn.00404d90
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x378], 0
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x378]
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], 0
call fcn.004245f0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x374]
mov edi, dword [ebp - 0x378]
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0
cmp eax, ecx
jae 0x420a82
cmp edi, eax
ja 0x420a82
mov esi, eax
sub esi, edi
sar esi, 1
cmp ecx, dword [ebp - 0x370]
jne 0x420a78
push 1
lea ecx, [ebp - 0x378]
call fcn.004073f0
mov ecx, dword [ebp - 0x374]
mov edi, dword [ebp - 0x378]
test ecx, ecx
je 0x420aac
mov ax, word [edi + esi*2]
jmp 0x420aa9
cmp ecx, dword [ebp - 0x370]
jne 0x420aa3
push 1
lea ecx, [ebp - 0x378]
call fcn.004073f0
mov ecx, dword [ebp - 0x374]
mov edi, dword [ebp - 0x378]
test ecx, ecx
je 0x420aac
xor eax, eax
mov word [ecx], ax
add ecx, 2
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x374], ecx
mov ecx, dword [ebp - 0x34c]
push eax
call fcn.004139b0
cmp dword [eax + 0x14], 8
jb 0x420acf
mov eax, dword [eax]
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x284]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
sete al
cmp dword [ebp - 0x388], 8
mov byte [ebp - 0x345], al
jb 0x420b19
push dword [ebp - 0x39c]
call fcn.0043f2ce
mov al, byte [ebp - 0x345]
add esp, 4
push ecx
test al, al
je 0x420f00
lea ecx, [ebp - 0x18c]
call fcn.004014c0
mov dword [ebp - 0x18c], 0x46aaac
mov dword [ebp - 0x17c], 0x46aaa4
mov byte [ebp - 4], 0x11
xorps xmm0, xmm0
push 0
push 0
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x36c], 0x11
mov dword [ebp - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x128], 0x50
movlpd qword [ebp - 0x184], xmm0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0x201
mov dword [ebp - 0x10c], 6
mov dword [ebp - 0x108], 0
movlpd qword [ebp - 0x104], xmm0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
call fcn.0040dd70
push 4
call fcn.0043f40d
mov esi, eax
add esp, 4
test esi, esi
je 0x420bf9
push 1
mov dword [esi], 0
call fcn.0042b207
add esp, 4
mov dword [esi], eax
jmp 0x420bfb
xor esi, esi
lea eax, [ebp - 0x174]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xe8], 0
call fcn.0040d900
push eax
mov dword [ebp - 4], 0x14
call fcn.0040d4c0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x34c]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x420c5a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x420c5a
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esi]
push 0x20
mov ecx, esi
call dword [eax + 0x30]
cmp dword [ebp - 0xec], 0
mov word [ebp - 0xe4], ax
jne 0x420c8a
mov eax, dword [ebp - 0x118]
or eax, 4
push 0
push eax
lea ecx, [ebp - 0x124]
call fcn.0040dd70
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x180], eax
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x190], eax
mov dword [ebp - 4], 0x17
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x190], eax
lea ecx, [ebp - 0x174]
call fcn.00407110
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
xor edx, edx
lea ecx, [ebp - 0x39c]
mov byte [ebp - 4], 0x19
call fcn.004212e0
mov esi, eax
mov edx, str.CreateProcess_failed._Error_code_
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 0x1a
call fcn.0040a670
mov edx, esi
mov ecx, eax
call fcn.0040a400
cmp dword [ebp - 0x388], 8
jb 0x420d76
push dword [ebp - 0x39c]
call fcn.0043f2ce
add esp, 4
xor eax, eax
mov dword [ebp - 0x350], 7
mov dword [ebp - 0x354], 0
mov word [ebp - 0x364], ax
mov byte [ebp - 4], 0x1b
cmp dword [0x4777ec], 8
mov eax, dword [0x4777e8]
mov edx, ebx
cmovae edx, dword [0x4777d8]
cmovae ebx, dword [0x4777d8]
lea eax, [edx + eax*2]
push eax
push ebx
lea ecx, [ebp - 0x364]
call fcn.0040adb0
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x1c
call fcn.00404d90
lea edx, [ebp - 0x364]
mov ecx, eax
mov byte [ebp - 4], 0x1d
call fcn.0041edd0
cmp dword [ebp - 0x388], 8
jb 0x420e01
push dword [ebp - 0x39c]
call fcn.0043f2ce
add esp, 4
xor eax, eax
cmp dword [ebp - 0x350], 8
mov dword [ebp - 0x388], 7
mov dword [ebp - 0x38c], 0
mov word [ebp - 0x39c], ax
jb 0x420e35
push dword [ebp - 0x364]
call fcn.0043f2ce
add esp, 4
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x190], eax
lea ecx, [ebp - 0x174]
call fcn.00404e10
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x190], eax
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x180], eax
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x190], eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
call fcn.0042af96
add esp, 4
xor bl, bl
jmp 0x421256
lea ecx, [ebp - 0x23c]
call fcn.004014c0
mov dword [ebp - 0x23c], 0x46aaac
mov dword [ebp - 0x22c], 0x46aaa4
mov byte [ebp - 4], 0x1e
xorps xmm0, xmm0
push 0
push 0
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x36c], 0x101
mov dword [ebp - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x1d8], 0x50
movlpd qword [ebp - 0x234], xmm0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0x201
mov dword [ebp - 0x1bc], 6
mov dword [ebp - 0x1b8], 0
movlpd qword [ebp - 0x1b4], xmm0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
call fcn.0040dd70
push 4
call fcn.0043f40d
mov esi, eax
add esp, 4
test esi, esi
je 0x420fd7
push 1
mov dword [esi], 0
call fcn.0042b207
add esp, 4
mov dword [esi], eax
jmp 0x420fd9
xor esi, esi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x198], 0
call fcn.0040d900
push eax
mov dword [ebp - 4], 0x21
call fcn.0040d4c0
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x34c]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x421038
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x421038
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esi]
push 0x20
mov ecx, esi
call dword [eax + 0x30]
cmp dword [ebp - 0x19c], 0
mov word [ebp - 0x194], ax
jne 0x421068
mov eax, dword [ebp - 0x1c8]
or eax, 4
push 0
push eax
lea ecx, [ebp - 0x1d4]
call fcn.0040dd70
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x230], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x240], eax
mov dword [ebp - 4], 0x24
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x240], eax
lea ecx, [ebp - 0x224]
call fcn.00407110
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
mov byte [ebp - 4], 0x26
push dword [ebp - 0x33c]
mov edx, str.Process_launched:_PID_
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0040a670
add esp, 4
mov ecx, eax
call fcn.0041a690
xor eax, eax
mov dword [ebp - 0x350], 7
mov dword [ebp - 0x354], 0
mov word [ebp - 0x364], ax
mov byte [ebp - 4], 0x27
cmp dword [0x4777ec], 8
mov eax, dword [0x4777e8]
mov edx, ebx
cmovae edx, dword [0x4777d8]
cmovae ebx, dword [0x4777d8]
lea eax, [edx + eax*2]
push eax
push ebx
lea ecx, [ebp - 0x364]
call fcn.0040adb0
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0x28
call fcn.00404d90
lea edx, [ebp - 0x364]
mov ecx, eax
mov byte [ebp - 4], 0x29
call fcn.0041edd0
cmp dword [ebp - 0x388], 8
jb 0x4211bd
push dword [ebp - 0x39c]
call fcn.0043f2ce
add esp, 4
xor eax, eax
cmp dword [ebp - 0x350], 8
mov dword [ebp - 0x388], 7
mov dword [ebp - 0x38c], 0
mov word [ebp - 0x39c], ax
jb 0x4211f1
push dword [ebp - 0x364]
call fcn.0043f2ce
add esp, 4
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 0x10
call fcn.00404d10
lea eax, [ebp - 0x1d4]
push eax
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
call fcn.0042af96
mov eax, dword [ebp - 0x3a8]
add esp, 4
test eax, eax
jne 0x42123b
push dword [ebp - 0x344]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x340]
call esi
jmp 0x421254
movq xmm0, qword [ebp - 0x344]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x33c]
movq qword [eax + 8], xmm0
mov bl, 1
test edi, edi
je 0x421263
push edi
call fcn.0043f2ce
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x421274
push dword [ebp - 0x2c]
call fcn.0043f2ce
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00404d10
lea eax, [ebp - 0x2cc]
push eax
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
call fcn.0042af96
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret