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

Disassembly:
push 0xffffffffffffffff
push 0x411fdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov al, byte [esp + 0x70]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov byte [esp + 0xf], 0
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov cl, byte [esp + 0x7c]
push edi
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], edi
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 dl, byte [esp + 0x7c]
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 1
mov byte [esp + 0x3c], dl
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 esi, dword [esp + 0x7c]
mov ebx, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push 0x4172c0
push esi
mov byte [esp + 0x78], 2
call ebx
add esp, 8
test al, al
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 ecx, dword [eax]
push ecx
push edi
je 0x409f4b
mov edx, dword [esp + 0x18]
push edx
jmp 0x409f4c
push esi
lea ecx, [esp + 0x34]
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 esi, dword [esp + 0x80]
push 0x4172c0
push esi
call ebx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esp, 8
test al, al
mov eax, dword [edx]
push eax
push edi
je 0x409f80
mov ecx, dword [esp + 0x18]
add ecx, 0x10
push ecx
jmp 0x409f81
push esi
lea ecx, [esp + 0x44]
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 + 0x1c]
push ebp
mov ebp, dword [esp + 0x7c]
mov ecx, dword [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00407360
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x409fb0
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 edx, dword [esp + 0x34]
mov ecx, ebp
push edx
push edi
push eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_of_char_const___unsigned_int__unsigned_int_const]
mov ebx, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp ebx, dword [eax]
jne 0x409fcf
mov ebx, dword [ebp + 8]
jmp 0x409ffc
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x409fdc
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 ecx, dword [esp + 0x34]
lea edx, [ebx + 1]
push ecx
push edx
push eax
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_not_of_char_const___unsigned_int__unsigned_int_const]
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 dword [esp + 0x18], eax
cmp eax, dword [ecx]
jne 0x40a001
mov byte [esp + 0x13], 1
mov eax, edi
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x40a011
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]
mov edx, dword [esp + 0x44]
push edx
push eax
push ecx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_not_of_char_const___unsigned_int__unsigned_int_const]
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp esi, dword [eax]
je 0x40a0e0
cmp esi, ebx
jae 0x40a0e0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40a044
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 ecx, dword [esp + 0x44]
lea edx, [esi + 1]
push ecx
push edx
push eax
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_of_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp edi, dword [eax]
je 0x40a0aa
cmp edi, ebx
jae 0x40a0aa
mov ecx, edi
lea edx, [esp + 0x4c]
sub ecx, esi
push ecx
push esi
push edx
mov ecx, ebp
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_]
push eax
mov eax, dword [esp + 0x28]
push 1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 4
call fcn.0040c4e0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [edi + 1]
jmp 0x40a003
sub ebx, esi
lea ecx, [esp + 0x5c]
push ebx
push esi
push ecx
mov ecx, ebp
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 edx, dword [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 3
call fcn.00407b00
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x78], 2
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 + 0x20]
xor esi, esi
cmp eax, esi
je 0x40a113
mov ecx, dword [esp + 0x24]
sub ecx, eax
test ecx, 0xfffffff0
je 0x40a113
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x28]
lea ecx, [edx + 0x20]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
call fcn.0040bec0
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x40a124
mov edi, dword [esp + 0x18]
jmp 0x409f94
mov eax, dword [esp + 0x14]
pop ebp
mov ecx, dword [eax + 0x24]
cmp ecx, esi
jne 0x40a134
xor eax, eax
jmp 0x40a13c
mov eax, dword [eax + 0x28]
sub eax, ecx
sar eax, 4
cmp eax, esi
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 1
sete 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_]
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x40a177
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a16e
cmp al, 0xff
je 0x40a16e
dec al
mov byte [ecx], al
jmp 0x40a177
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x70], 0xffffffff
cmp esi, edi
je 0x40a1ac
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x40a197
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x6c]
add esp, 4
mov al, bl
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0xc