Function at 0x5013c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5189f8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edx, dword [esp + 0x54]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov ebx, dword [esp + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
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 dword [esp + 0x18], ecx
lea edi, [esi + 0x40]
mov ebp, ebx
mov eax, dword [edx]
cmp eax, ebx
jae 0x501439
mov ebp, eax
lea edx, [esp + 0x2c]
cmp edi, edx
jne 0x50145c
push eax
push ebp
mov ecx, edi
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__::erase_unsigned_int__unsigned_int_]
push 0
push 0
mov ecx, edi
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__::erase_unsigned_int__unsigned_int_]
jmp 0x5014e3
cmp ebp, ecx
jbe 0x5014a2
cmp ebp, ebx
jne 0x5014a2
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x501471
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp byte [eax - 1], 0xfe
jae 0x5014a2
push 1
mov ecx, edi
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 [esp + 0x30]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test ecx, ecx
je 0x501490
mov eax, ecx
mov edx, dword [esp + 0x38]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
inc byte [eax - 1]
jmp 0x5014e7
push 1
push ebp
mov ecx, 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 0x5014e3
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x5014bf
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov eax, dword [edi + 4]
test ebp, ebp
jbe 0x5014d7
mov edx, ebp
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x5014c8
mov eax, dword [edi + 4]
mov dword [edi + 8], ebp
mov word [eax + ebp*2], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esi + 0x50], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x58], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edx
test ecx, ecx
mov dword [esi + 0x14], 0
je 0x501533
mov al, byte [ecx - 1]
test al, al
je 0x501527
cmp al, 0xff
je 0x501527
dec al
mov byte [ecx - 1], al
jmp 0x501533
add ecx, 0xfffffffe
push ecx
call fcn.00512b1a
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x38