Function at 0x421a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f979
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x2c]
push ebx
push esi
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 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 esi, dword [esp + 0x30]
mov dword [esp + 0x24], 0
push esi
mov ebx, esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
add esp, 4
shr eax, 0x1f
add edx, eax
lea eax, [ecx + edx + 7]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jae 0x421afa
push 0
push eax
lea ecx, [esp + 0x14]
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_]
mov ax, word [esi]
test ax, ax
je 0x421d29
push ebp
push edi
mov edi, dword [esp + 0x3c]
and edi, 0x100
mov dword [esp + 0x38], edi
test edi, edi
je 0x421b3f
cmp ax, 0x22
jb 0x421cca
cmp ax, 0x3e
ja 0x421cca
mov ecx, eax
and ecx, 0xffff
movsx edx, byte [ecx + 0x43af0e]
jmp 0x421b62
cmp ax, 0x26
jb 0x421cca
cmp ax, 0x3e
ja 0x421cca
mov edx, eax
and edx, 0xffff
movsx edx, byte [edx + 0x43aeee]
test edx, edx
je 0x421cca
test byte [esp + 0x3c], 8
je 0x421c56
cmp ax, 0x26
jne 0x421c56
mov ax, word [ebx + 2]
lea ebp, [ebx + 2]
cmp ax, 0x23
jb 0x421ba5
cmp ax, 0x7a
ja 0x421ba5
mov ecx, eax
and ecx, 0xffff
movsx ecx, byte [ecx + 0x43ae95]
test ecx, ecx
jne 0x421baf
cmp ax, 0x7f
jbe 0x421c56
mov ax, word [ebp + 2]
add ebp, 2
cmp ax, 0x3b
je 0x421be3
cmp ax, 0x2d
jb 0x421bdb
cmp ax, 0x7a
ja 0x421bdb
mov ecx, eax
and ecx, 0xffff
movsx ecx, byte [ecx + 0x43ae3b]
test ecx, ecx
jne 0x421baf
cmp ax, 0x7f
jbe 0x421c56
jmp 0x421baf
mov edx, 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]
mov esi, ebp
sub esi, ebx
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
sar esi, 1
inc esi
sub eax, edx
cmp eax, esi
ja 0x421c02
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x421c48
mov ecx, dword [esp + 0x1c]
push 0
lea edi, [ecx + esi]
lea ecx, [esp + 0x18]
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 0x421c48
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
lea eax, [edx + eax*2]
mov dx, word [ecx]
add ecx, 2
mov word [eax], dx
add eax, 2
dec esi
jne 0x421c2b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov word [eax + edi*2], 0
mov edi, dword [esp + 0x38]
mov ebx, ebp
add ebx, 2
jmp 0x421d1b
mov ebp, dword [edx*4 + 0x436348]
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, 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]
mov esi, eax
add esp, 4
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x421c81
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x421cc1
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea edi, [eax + esi]
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 0x421cc1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push ebp
lea eax, [ecx + edx*2]
push eax
call fcn.0041d990
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], edi
add esp, 0xc
mov word [ecx + edi*2], 0
mov edi, dword [esp + 0x38]
add ebx, 2
jmp 0x421d1b
mov edx, 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]
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
sub eax, edx
cmp eax, 1
ja 0x421ce3
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [esp + 0x1c]
push 0
lea esi, [ecx + 1]
lea ecx, [esp + 0x18]
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 0x421d18
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dx, word [ebx]
mov word [eax + ecx*2], dx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov word [edx + esi*2], 0
add ebx, 2
mov ax, word [ebx]
test ax, ax
jne 0x421b16
pop edi
pop ebp
mov esi, dword [esp + 0x2c]
mov al, byte [esp + 0xc]
push 0
mov ecx, esi
mov byte [esi], 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 ecx, 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 eax, [esp + 0xc]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
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 + 0x10]
test ecx, ecx
je 0x421d8c
mov al, byte [ecx - 1]
test al, al
je 0x421d80
cmp al, 0xff
je 0x421d80
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret