Function at 0x4077d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4145ea
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea edi, [ebp + 0xb4]
lea ebx, [ebp + 0xa4]
push edi
push ebx
call fcn.00406a80
test al, al
jne 0x407895
sub esp, 0x10
lea eax, [esp + 0x23]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
push 0x41b168
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [esp + 0x30]
push ecx
call fcn.0040bfd0
add esp, 0x14
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x2dc], 0
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [ebp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, ebp
call fcn.0040d4b0
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 4]
mov dword [esp + 0x2dc], 0xffffffff
push 1
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2d0
ret
mov ecx, dword [ebp + 0xa0]
lea eax, [ebp + 0xe0]
push eax
call fcn.0040aae0
mov al, byte [edi]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
mov byte [esi], al
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4078bf
xor eax, eax
jmp 0x4078c7
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x4078cd
xor eax, eax
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00403000
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
sub esp, 0x10
mov dword [esp + 0x2fc], 1
mov ecx, esp
mov dword [esp + 0x38], esp
push ebx
call fcn.00409c60
mov ecx, dword [ebp + 0xa0]
or esi, 0xffffffff
mov dword [esp + 0x2fc], esi
call fcn.0040ac20
test al, al
jne 0x4079e7
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0xa0]
call fcn.0040b8b0
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edi, [ebp + 0x20]
mov dword [esp + 0x2dc], 2
mov ecx, dword [edx]
push ecx
push 0
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, ebp
call fcn.0040d4b0
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 4]
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x2e0], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
sub esp, 0x10
lea eax, [esp + 0x23]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push 0x41b2cc
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [esp + 0x30]
push ecx
call fcn.0040bfd0
add esp, 0x14
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x2dc], 3
mov ecx, dword [edx]
push ecx
push 0
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, ebp
call fcn.0040d4b0
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 4]
mov dword [esp + 0x2dc], esi
push 1
lea ecx, [esp + 0x24]
jmp 0x407874
mov ecx, ebp
call fcn.00408a50
test al, al
je 0x40787a
cmp dword [ebp + 0xd4], 0x64
jne 0x407b18
lea eax, [ebp + 0x90]
lea ecx, [esp + 0x20]
push eax
lea eax, [ebp + 0xe0]
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x90]
mov dword [esp + 0x2dc], 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x407a46
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea edx, [esp + 0xd8]
push 0x41b2bc
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x30]
lea ecx, [esp + 0x90]
lea edx, [esp + 0xd4]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407a96
mov eax, dword [esp + 0x30]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 0x10
lea edx, [esp + 0x23]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push 0x41b29c
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x70]
push eax
call fcn.0040bfd0
add esp, 0x14
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ebx, [ebp + 0x20]
mov byte [esp + 0x2dc], 5
mov edx, dword [ecx]
mov ecx, ebx
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, ebp
call fcn.0040d4b0
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax + 4]
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x2e0], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x2e0], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x407eb5
push 1
mov ecx, ebp
call fcn.00407170
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2e0], 6
mov byte [esp + 0x34], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
sub esp, 0x10
lea eax, [esp + 0x23]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push 0x41b284
mov byte [esp + 0x2f4], 7
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [esp + 0x70]
push ecx
call fcn.0040bfd0
add esp, 0x14
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor esi, esi
lea ebx, [ebp + 0x20]
mov byte [esp + 0x2dc], 8
mov ecx, dword [edx]
push ecx
push esi
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, ebp
call fcn.0040d4b0
mov edx, dword [ebp]
push esi
mov ecx, ebp
call dword [edx + 4]
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x2e0], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dword [esp + 0x14], esi
mov eax, dword [edi + 4]
test eax, eax
je 0x407e52
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x407e52
mov eax, dword [ebp + 0xb8]
lea edx, [esi + eax]
lea eax, [ebp + 0xe0]
push edx
push eax
lea eax, [esp + 0x68]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x2dc], 9
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x2e0], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp + 0xb8]
lea ecx, [ebp + 0x40]
add eax, esi
lea edx, [esp + 0x70]
push eax
push ecx
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x2dc], 0xa
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x2e0], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x14]
mov ecx, edi
push eax
call fcn.00409cf0
push eax
lea edx, [esp + 0x17]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push 0x41b274
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x64]
push eax
call fcn.0040bfd0
add esp, 0x14
lea ecx, [esp + 0x84]
push eax
push ecx
mov byte [esp + 0x2e8], 0xb
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x2dc], 0xc
mov ecx, dword [edx]
push ecx
push 0
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, ebp
call fcn.0040d4b0
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 4]
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x2e0], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x2e0], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x30]
push 1
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebp
call fcn.00409180
test al, al
je 0x407d51
mov ecx, dword [esp + 0x14]
inc ecx
add esi, 0x10
mov dword [esp + 0x14], ecx
jmp 0x407bca
sub esp, 0x10
lea edx, [esp + 0x23]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push 0x41b260
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x60]
push eax
call fcn.0040bfd0
add esp, 0x14
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor esi, esi
mov byte [esp + 0x2dc], 0xd
mov edx, dword [ecx]
mov ecx, ebx
push edx
push esi
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, ebp
call fcn.0040d4b0
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 4]
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x2e0], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp + 0x40]
push 0x41b1f0
lea edx, [esp + 0x54]
push ecx
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x2e0], 0xe
call fcn.00408080
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x2e0], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x34]
cmp ecx, esi
je 0x407e16
mov al, byte [ecx - 1]
test al, al
je 0x407e0c
cmp al, 0xff
je 0x407e0c
dec al
mov byte [ecx - 1], al
jmp 0x407e16
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], esi
cmp ecx, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
je 0x40787a
mov al, byte [ecx - 1]
test al, al
je 0x407e43
cmp al, 0xff
je 0x407e43
dec al
mov byte [ecx - 1], al
jmp 0x40787a
dec ecx
push ecx
call fcn.004134f0
add esp, 4
jmp 0x40787a
mov eax, dword [esp + 0x34]
test eax, eax
je 0x407e77
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407e6e
cmp al, 0xff
je 0x407e6e
dec al
mov byte [ecx], al
jmp 0x407e77
push ecx
call fcn.004134f0
add esp, 4
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2dc], 0xffffffff
je 0x407eb5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407eac
cmp al, 0xff
je 0x407eac
dec al
mov byte [ecx], al
jmp 0x407eb5
push ecx
call fcn.004134f0
add esp, 4
mov ecx, ebp
call fcn.004095e0
mov al, byte [esp + 0x13]
xor esi, esi
mov dword [ebp + 0xd8], esi
push esi
lea ecx, [esp + 0x44]
mov dword [ebp + 0xdc], esi
mov byte [esp + 0x44], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x2dc], 0xf
cmp eax, esi
jne 0x407ef4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea edx, [esp + 0x23]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
push 0x41b250
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x64]
push eax
call fcn.0040bfd0
add esp, 0x14
mov ecx, eax
mov byte [esp + 0x2e0], 0x10
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00409f20
mov eax, dword [esp + 0x60]
add esp, 0xc
cmp eax, esi
mov byte [esp + 0x2dc], 0xf
je 0x407f66
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407f5d
cmp al, 0xff
je 0x407f5d
dec al
mov byte [ecx], al
jmp 0x407f66
push ecx
call fcn.004134f0
add esp, 4
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [esp + 0x48]
mov edi, ecx
mov eax, dword [edx]
mov dword [esp + 0x14], edi
cmp eax, edi
jae 0x407f82
mov dword [esp + 0x14], eax
mov edi, eax
lea edx, [esp + 0x40]
cmp ebx, edx
jne 0x407fa5
push eax
push edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
push 0
push 0
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
jmp 0x408030
test edi, edi
jbe 0x407ff2
cmp edi, ecx
jne 0x407ff2
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x407fba
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax - 1], 0xfe
jae 0x407ff2
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x407fd7
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x408030
push 1
push edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408030
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x40800f
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov ecx, ebp
call fcn.0040d4b0
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40806a
mov al, byte [ecx - 1]
test al, al
je 0x408060
cmp al, 0xff
je 0x408060
dec al
mov byte [ecx - 1], al
mov al, 1
jmp 0x40787c
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov al, 1
jmp 0x40787c