Function at 0x4032c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a3e4
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x40f018]
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
xor ebx, ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x344], 0x40b5a0
mov dword [ebp - 0x334], 0x40b540
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push ebx
lea eax, [ebp - 0x32c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x288], 1
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x32c]
mov dword [ebp + edx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x2f0], ebx
mov dword [ebp - 0x2ec], ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x334]
push ecx
mov byte [ebp - 4], 4
call fcn.004089a0
push 0x1ff
lea edx, [ebp - 0x213]
push ebx
push edx
mov byte [ebp - 0x214], bl
call sub.MSVCR100.dll_memset
add esp, 0x14
xor edi, edi
mov eax, 0x40b3b9
lea esi, [ebp - 0x24c]
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], bl
call fcn.00407e20
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x268], bl
push ebx
push 0x200
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x403596
lea eax, [ebp - 0x214]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403450
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x214]
lea esi, [ebp - 0x230]
call fcn.00407e20
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x230]
mov ecx, edi
cmp edx, 0x10
jae 0x403485
mov ecx, esi
mov eax, dword [ebp - 0x220]
cmp byte [eax + ecx - 1], 0xd
jne 0x4034ff
lea ecx, [eax - 1]
mov esi, 1
cmp eax, ecx
jb 0x40381c
sub eax, ecx
cmp eax, esi
jae 0x4034ae
mov esi, eax
cmp esi, ebx
jbe 0x4034ff
cmp edx, 0x10
jae 0x403711
lea edi, [ebp - 0x230]
mov edx, edi
sub eax, esi
add edi, ecx
push eax
add edi, esi
add edx, ecx
push edi
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x230]
sub eax, esi
add esp, 0xc
cmp dword [ebp - 0x21c], 0x10
mov dword [ebp - 0x220], eax
jae 0x4034f6
lea ecx, [ebp - 0x230]
mov byte [ecx + eax], bl
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x28c]
inc eax
mov dword [ebp - 0x28c], eax
cmp eax, 2
jne 0x40371c
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.MSVCR100.dll_atoi]
mov edx, dword [ebp - 0x21c]
add esp, 4
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x40354a
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
push ebx
push 0x200
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x21c], 0xf
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___long_long___int64__]
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx edx, al
neg edx
sbb edx, edx
not edx
test ecx, edx
jne 0x40342d
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
mov eax, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], esi
jae 0x4035b5
lea eax, [ebp - 0x24c]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x40363a
mov edx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], esi
jae 0x4035d9
lea edx, [ebp - 0x24c]
xor eax, eax
mov ecx, 0x40b3b9
call fcn.00401c00
cmp eax, ebx
jne 0x4035f6
xor eax, eax
cmp dword [ebp - 0x23c], ebx
setne al
cmp eax, ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x40363a
mov ecx, dword [ebp - 0x268]
cmp dword [ebp - 0x254], esi
jae 0x403616
lea ecx, [ebp - 0x268]
mov eax, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], esi
jae 0x40362a
lea eax, [ebp - 0x24c]
push ebx
push ebx
push ecx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x254], esi
jb 0x403652
mov ecx, dword [ebp - 0x268]
push ecx
call edi
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x268], bl
cmp dword [ebp - 0x238], esi
jb 0x403680
mov edx, dword [ebp - 0x24c]
push edx
call edi
add esp, 4
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], bl
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x288], eax
mov dword [ebp + edx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 0xa
call fcn.00405be0
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2e4]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0x4036f5
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
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.00409024
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x230]
jmp 0x4034bf
cmp eax, dword [ebp - 0x288]
jne 0x403531
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x294], ebx
mov byte [ebp - 4], 8
mov edi, 2
mov eax, 0x40b40c
lea esi, [ebp - 0x284]
mov dword [ebp - 0x270], 0xf
mov dword [ebp - 0x274], ebx
mov byte [ebp - 0x284], bl
call fcn.00407e20
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x29c]
mov edx, esi
mov byte [ebp - 4], 9
call fcn.00401cc0
mov byte [ebp - 4], 8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x270], 0x10
jb 0x4037a3
mov eax, dword [ebp - 0x284]
push eax
call edi
add esp, 4
mov ecx, dword [ebp - 0x298]
mov esi, dword [ebp - 0x29c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x270], 0xf
mov dword [ebp - 0x274], ebx
mov byte [ebp - 0x284], bl
cmp ecx, 2
jae 0x403827
lea ebx, [ebp - 0x29c]
mov byte [ebp - 4], 7
call fcn.004075b0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x21c], 0x10
jb 0x403807
mov edx, dword [ebp - 0x230]
push edx
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x230], al
xor ebx, ebx
jmp 0x403556
push str.invalid_string_position
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
push esi
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x24c]
call fcn.00407140
lea eax, [esi + 0x1c]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.00407140
lea ebx, [ebp - 0x29c]
mov byte [ebp - 4], 7
call fcn.004075b0
mov esi, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x21c], esi
jb 0x403876
mov eax, dword [ebp - 0x230]
push eax
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x230], al
xor ebx, ebx
jmp 0x4035a1