Function at 0x41b590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x56857c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x94]
xor ebx, ebx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x10], ebx
cmp edi, eax
jne 0x41b6a6
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x41b6a6
mov ecx, dword [esi + 0x34]
cmp ecx, 0x20
jne 0x41b5fa
mov edi, dword [esp + 0x90]
add eax, 0xfffffff9
push eax
mov eax, dword [esi + 0x38]
add eax, 4
mov ecx, esi
push eax
push edi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x41b96d
cmp ecx, 0x10
jne 0x41b621
mov ecx, dword [esi + 0x38]
mov edi, dword [esp + 0x90]
add eax, 0xfffffffc
add ecx, 2
push eax
push ecx
push edi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x41b96d
cmp ecx, 8
jne 0x41b632
mov edx, dword [esi + 0x38]
add eax, 0xfffffff4
push eax
add edx, 9
jmp 0x41b68e
cmp ecx, 2
jne 0x41b660
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x41b644
mov ecx, 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
mov eax, dword [esi + 0x38]
mov esi, dword [esp + 0x94]
add eax, ecx
push eax
push esi
call fcn.00419370
add esp, 0xc
jmp 0x41b96b
cmp ecx, 0x80
jne 0x41b68a
mov ecx, dword [esi + 0x38]
mov edi, dword [esp + 0x90]
add eax, 0xfffffffd
add ecx, 2
push eax
push ecx
push edi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x41b96d
mov edx, dword [esi + 0x38]
push eax
mov edi, dword [esp + 0x94]
push edx
push edi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x41b96d
mov al, byte [esp + 0xf]
push ebp
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 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 edx, dword [esi + 0x48]
mov ecx, edi
sar ecx, 0x10
and edi, 0xffff
mov dword [esp + 0x8c], ebx
mov eax, dword [edx + ecx*4]
shl edi, 5
add eax, edi
cmp dword [eax + 0x14], ebx
jne 0x41b917
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
and ecx, 0x2fffff
cmp ecx, edx
je 0x41b917
mov ecx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov edi, dword [eax + 8]
mov edx, ecx
sar edx, 0x16
sub ebp, edx
mov edx, dword [eax]
mov eax, dword [esi + 4]
and ecx, 0x2fffff
and edi, 0x2fffff
sub ebp, ecx
add edi, edx
cmp eax, ebx
jne 0x41b722
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]
lea ebx, [eax + edi]
push 0x3c
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x41b8ad
sub eax, ebx
cmp eax, ebp
jge 0x41b8ad
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x40]
test eax, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xffffffff
jne 0x41b762
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]
mov dword [esp + 0x54], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x58], ecx
push 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x54], edi
mov byte [esp + 0x78], 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 eax, dword [esp + 0x50]
add ebp, edi
mov ebx, 1
cmp eax, ebp
mov byte [esp + 0x8c], bl
jge 0x41b889
lea ecx, [esp + 0x64]
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0041ab80
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, 2
jne 0x41b806
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x68]
push eax
add edx, ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00419370
add esp, 0xc
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 byte [esp + 0x8c], 2
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x90], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41b87f
cmp eax, 8
jne 0x41b87f
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
add eax, 0xfffffff4
add ecx, 9
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
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__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor edi, edi
mov byte [esp + 0x8c], 3
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push edi
push eax
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x8c], bl
cmp eax, edi
je 0x41b873
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41b86a
cmp al, 0xff
je 0x41b86a
dec al
mov byte [ecx], al
jmp 0x41b873
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
cmp dword [esp + 0x50], ebp
jl 0x41b79c
mov eax, dword [esp + 0x78]
mov byte [esp + 0x8c], 0
test eax, eax
je 0x41b917
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41b90e
cmp al, 0xff
je 0x41b90e
dec al
mov byte [ecx], al
jmp 0x41b917
mov esi, dword [esi + 4]
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]
test esi, esi
je 0x41b8bb
mov eax, esi
add eax, edi
push ebp
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00419370
add esp, 0xc
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 byte [esp + 0x8c], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
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 eax, dword [esp + 0x3c]
mov byte [esp + 0x8c], 0
test eax, eax
je 0x41b917
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41b90e
cmp al, 0xff
je 0x41b90e
dec al
mov byte [ecx], al
jmp 0x41b917
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x94]
mov al, byte [esp + 0x18]
xor edi, edi
mov byte [esi], al
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x18]
mov edx, dword [ecx]
mov ecx, esi
push edx
push edi
push eax
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 + 0x1c]
pop ebp
cmp ecx, edi
je 0x41b96b
mov al, byte [ecx - 1]
test al, al
je 0x41b961
cmp al, 0xff
je 0x41b961
dec al
mov byte [ecx - 1], al
jmp 0x41b96b
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 8