Function at 0x41bb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ef59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov al, byte [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x1c]
push edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], 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 ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x68], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x3d]
lea edx, [esp + 0x2c]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 4
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
xor eax, eax
mov ebx, dword [ecx]
mov word [esp + 0x3c], ax
mov edx, ebx
mov byte [esp + 0x3e], al
and edx, 0xff
lea eax, [esp + 0x3c]
push edx
push str._02x
push eax
mov dword [esp + 0x20], ebx
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
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 [esp + 0x24]
sub edx, ecx
cmp edx, esi
ja 0x41bc14
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x41bc60
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebp, [eax + esi]
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 0x41bc5a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, esi
lea esi, [esp + 0x3c]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
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 ebp, dword [sym.imp.MSVCRT.dll_sprintf]
xor ecx, ecx
xor eax, eax
mov cl, bh
lea edx, [esp + 0x3c]
push ecx
mov word [esp + 0x40], ax
push str._02x
push edx
mov byte [esp + 0x4a], al
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
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]
mov edx, dword [esp + 0x24]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x41bca6
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x41bcec
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebx, [edx + esi]
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 0x41bcec
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, esi
lea esi, [esp + 0x3c]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
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_]
xor edx, edx
xor ecx, ecx
mov dl, byte [esp + 0x16]
lea eax, [esp + 0x3c]
push edx
mov word [esp + 0x40], cx
push str._02x
push eax
mov byte [esp + 0x4a], cl
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
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 [esp + 0x24]
sub edx, ecx
cmp edx, esi
ja 0x41bd35
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x41bd7b
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebx, [eax + esi]
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 0x41bd7b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, esi
lea esi, [esp + 0x3c]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
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_]
xor ecx, ecx
xor eax, eax
mov cl, byte [esp + 0x17]
lea edx, [esp + 0x3c]
push ecx
mov word [esp + 0x40], ax
push str._02x
push edx
mov byte [esp + 0x4a], al
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
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]
mov edx, dword [esp + 0x24]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x41bdc3
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x41be09
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebx, [edx + esi]
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 0x41be09
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, esi
lea esi, [esp + 0x3c]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
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 ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x41bbb9
mov al, byte [esp + 0x74]
test al, al
je 0x41be43
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
jne 0x41be3a
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
call dword [sym.imp.USER32.dll_CharUpperA]
jmp 0x41be45
xor edi, edi
mov esi, dword [esp + 0x70]
mov cl, byte [esp + 0x1c]
mov byte [esi], cl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
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 + 0x1c]
mov eax, dword [edx]
push eax
push edi
push ecx
mov ecx, esi
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, dword [esp + 0x20]
cmp ecx, edi
je 0x41be93
mov al, byte [ecx - 1]
test al, al
je 0x41be89
cmp al, 0xff
je 0x41be89
dec al
mov byte [ecx - 1], al
jmp 0x41be93
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8