Function at 0x408ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458742
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0xc], ebx
mov al, byte [esp + 0x30]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push 0x46635c
call ebp
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x40906a
mov ecx, dword [esp + 0x14]
push esi
push 0x46635c
push ecx
call fcn.004091c0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
add esp, 0xc
mov word [edx + esi*2], bx
mov eax, dword [esp + 0x38]
mov byte [esp + 0x28], 1
cmp eax, ebx
jne 0x40907c
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 edi
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [0x4672f8]
mov edi, eax
lea eax, [edi + edi + 2]
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40910e
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x4090b0
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 edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [0x4672f8]
push esi
mov word [esi + eax*2], bx
call ebp
add esp, 4
mov edi, eax
lea ecx, [esp + 0x14]
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x409105
mov eax, dword [esp + 0x18]
cmp edi, ebx
mov ecx, esi
jbe 0x4090f9
mov edx, edi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x4090ea
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov word [ecx + edi*2], bx
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x34]
mov dl, byte [esp + 0x14]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push ecx
push ebx
push edx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x18]
pop edi
cmp ecx, ebx
je 0x40915e
mov al, byte [ecx - 1]
cmp al, bl
je 0x409152
cmp al, 0xff
je 0x409152
dec al
mov byte [ecx - 1], al
jmp 0x40915e
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x4091a0
mov al, byte [ecx - 1]
cmp al, bl
je 0x409196
cmp al, 0xff
je 0x409196
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret