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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x523298
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 0x50b829
mov ebp, eax
lea edx, [esp + 0x2c]
cmp edi, edx
jne 0x50b84c
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 0x50b8d3
cmp ebp, ecx
jbe 0x50b892
cmp ebp, ebx
jne 0x50b892
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x50b861
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 0x50b892
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 0x50b880
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 0x50b8d7
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 0x50b8d3
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x50b8af
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 0x50b8c7
mov edx, ebp
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x50b8b8
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 0x50b923
mov al, byte [ecx - 1]
test al, al
je 0x50b917
cmp al, 0xff
je 0x50b917
dec al
mov byte [ecx - 1], al
jmp 0x50b923
add ecx, 0xfffffffe
push ecx
call fcn.0051d19a
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