Function at 0x414f60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41d0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x44]
push esi
push edi
push 0x424d3c
mov esi, ecx
push ebx
call fcn.00406f40
mov al, byte [esp + 0x54]
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
push 0
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, [esi + 8]
add esi, 0x18
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], 0
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [esi]
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov edi, dword [ecx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edi
mov ecx, dword [ecx + 0xc]
cmp edi, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], ecx
je 0x415177
push ebp
jmp 0x414ff6
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov edx, 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]
test esi, esi
mov ecx, edx
je 0x415008
mov ecx, esi
mov eax, dword [edi + 4]
test eax, eax
jne 0x415011
mov eax, edx
cmp ecx, eax
je 0x415079
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 ecx, [esp + 0x20]
mov eax, dword [edx]
push eax
push 0
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_]
mov esi, dword [edi + 4]
test esi, esi
jne 0x415037
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
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 0x415075
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
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__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x415083
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 8]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, edi
ja 0x4150a7
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x4150e1
mov ebp, dword [ebx + 8]
push 0
add ebp, edi
mov ecx, ebx
push ebp
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 0x4150e1
mov edx, dword [ebx + 4]
mov ecx, edi
mov edi, dword [ebx + 8]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
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 edx, dword [ecx]
mov ecx, dword [ebx + 8]
sub edx, ecx
cmp edx, 1
ja 0x4150f9
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov esi, dword [ebx + 8]
push 0
inc esi
mov ecx, ebx
push esi
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 0x415121
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
add eax, ecx
mov byte [eax], 0
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [ecx + esi], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x41514f
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x414ff2
pop ebp
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 eax, dword [edx]
mov edx, dword [ebx + 8]
sub eax, edx
cmp eax, 1
ja 0x41518f
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov esi, dword [ebx + 8]
push 0
inc esi
mov ecx, ebx
push esi
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 0x4151b7
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
add ecx, eax
mov byte [ecx], 0
mov edx, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [edx + esi], 0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4151ed
mov al, byte [ecx - 1]
test al, al
je 0x4151e3
cmp al, 0xff
je 0x4151e3
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4