Function at 0x451740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462c74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
mov dword [esp + 4], ecx
mov al, byte [esp + 0x44]
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
mov byte [esp + 0xc], 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 ebp, dword [esp + 0x58]
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]
test ebp, ebp
mov byte [esp + 0x30], 1
je 0x45178d
mov eax, ebp
mov ecx, dword [esp + 0x40]
push ebx
push esi
push edi
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00452a40
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push 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 0x4517df
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
push ebx
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 + 0x18]
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 eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x45190e
mov edi, dword [esp + 0x48]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [esp + 0x3c], 2
cmp eax, ebx
jne 0x451815
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 edx, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
push eax
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, esi
call fcn.00444c80
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 1
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 edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push edi
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [esp + 0x3c], 3
cmp eax, ebx
jne 0x451868
mov ecx, 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 dword [esp + 0x4c], ecx
jmp 0x45186c
mov dword [esp + 0x4c], eax
mov edi, dword [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esi + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push 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 0x4518b6
mov edi, dword [ebp + 4]
mov esi, dword [esp + 0x4c]
mov ecx, ebx
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 esi, dword [esp + 0x50]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
mov byte [ebp + ebx], 0
add ebp, ebx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x3c], 1
test eax, eax
je 0x4518e0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4518d7
cmp al, 0xff
je 0x4518d7
dec al
mov byte [ecx], al
jmp 0x4518e0
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, esi
call fcn.004529b0
xor edx, edx
mov ecx, esi
div dword [esp + 0x54]
mov dword [esi + 0x54], eax
call fcn.00455db0
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x64]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x451932
mov al, byte [ecx - 1]
test al, al
je 0x451928
cmp al, 0xff
je 0x451928
dec al
mov byte [ecx - 1], al
jmp 0x451932
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
pop esi
cmp ebp, ebx
pop ebx
je 0x451971
mov al, byte [ebp - 1]
test al, al
je 0x451967
cmp al, 0xff
je 0x451967
dec al
mov byte [ebp - 1], al
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0x2c
dec ebp
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0x2c