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

Disassembly:
push 0xffffffffffffffff
push 0x412038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
push ebx
push ebp
mov ebp, ecx
mov cl, byte [esp + 0x74]
push esi
push edi
lea esi, [eax + 0x14]
mov byte [esp + 0x4c], cl
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], 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_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x54]
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_char_const___unsigned_int_]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x7c], 0
call fcn.00409840
add esp, 8
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_]
mov cl, byte [esp + 0x7c]
push 0
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
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 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 3
mov byte [esp + 0x30], 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 eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, 0x41623c
or ecx, 0xffffffff
mov byte [esp + 0x74], 4
mov edx, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41623c
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_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 ebx, eax
mov eax, dword [ecx]
cmp ebx, eax
jne 0x40a3ad
push eax
lea edx, [esp + 0x20]
push 0
push edx
lea ecx, [esp + 0x48]
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 edi, 0x4172c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4172c0
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_char_const___unsigned_int_]
jmp 0x40a432
push ebx
lea eax, [esp + 0x50]
push 0
push eax
lea ecx, [esp + 0x28]
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]
mov byte [esp + 0x74], 5
mov edx, dword [ecx]
lea ecx, [esp + 0x3c]
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_]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 4
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 + 0x24]
lea ecx, [ebx + 1]
sub eax, ebx
lea edx, [esp + 0x4c]
dec eax
push eax
push ecx
push edx
lea ecx, [esp + 0x28]
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]
mov byte [esp + 0x74], 6
mov edx, dword [ecx]
lea ecx, [esp + 0x2c]
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_]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 4
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 al, byte [ebp + 0x19]
mov byte [esp + 0x13], 0
test al, al
je 0x40a448
mov byte [esp + 0x13], 1
jmp 0x40a519
mov eax, dword [ebp + 0x1c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x40a6bd
mov esi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [ebp + 0x24]
movsx ecx, byte [edi + eax]
cmp ecx, 4
ja case.default.0x40a46f
jmp dword [ecx*4 + 0x40a75c]
mov ecx, dword [edi + eax + 0xc]
mov eax, dword [edi + eax + 8]
test eax, eax
jne 0x40a487
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 ecx
push 0
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_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]
cmp eax, dword [ecx]
jne case.0x40a46f.0
jmp case.default.0x40a46f
lea edx, [edi + eax + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
call esi
add esp, 8
test al, al
jne case.0x40a46f.0
jmp case.default.0x40a46f
lea ecx, [edi + eax + 4]
lea edx, [esp + 0x3c]
push ecx
push edx
call esi
add esp, 8
test al, al
jne case.0x40a46f.0
jmp case.default.0x40a46f
lea eax, [edi + eax + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
call esi
add esp, 8
test al, al
je case.default.0x40a46f
mov eax, dword [ebp + 0x24]
lea edx, [edi + eax + 4]
lea eax, [esp + 0x3c]
push edx
push eax
call esi
add esp, 8
test al, al
jne case.0x40a46f.0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x1c]
inc eax
add edi, 0x24
cmp eax, ecx
mov dword [esp + 0x18], eax
jge 0x40a6bd
jmp 0x40a45f
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [ebp + 0xc], eax
mov ecx, 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 [ecx]
jne 0x40a5e1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x84], edi
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 0x40a594
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
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 edi, 0x4172c0
or ecx, 0xffffffff
xor eax, eax
add ebp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
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 0x40a6bd
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x4172c0
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]
mov ecx, ebp
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_]
jmp 0x40a6bd
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x20]
push edi
mov dword [esp + 0x84], edi
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 0x40a628
mov ecx, edi
mov edi, dword [esp + 0x20]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
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_]
push ebx
lea edx, [esp + 0x50]
push 0
push edx
lea ecx, [esp + 0x28]
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]
mov byte [esp + 0x74], 7
mov edx, dword [ecx]
lea ecx, [ebp + 0x14]
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_]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 4
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 + 0x24]
lea ecx, [esp + 0x5c]
sub eax, ebx
dec eax
inc ebx
push eax
push ebx
push ecx
lea ecx, [esp + 0x28]
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x74], 8
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [ebp + 0x24]
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 + 0x60]
test eax, eax
je 0x40a6bd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a6b4
cmp al, 0xff
je 0x40a6b4
dec al
mov byte [ecx], al
jmp 0x40a6bd
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp ecx, esi
je 0x40a6e3
mov al, byte [ecx - 1]
test al, al
je 0x40a6d9
cmp al, 0xff
je 0x40a6d9
dec al
mov byte [ecx - 1], al
jmp 0x40a6e3
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], esi
cmp ecx, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
je 0x40a713
mov al, byte [ecx - 1]
test al, al
je 0x40a709
cmp al, 0xff
je 0x40a709
dec al
mov byte [ecx - 1], al
jmp 0x40a713
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
pop edi
cmp ecx, esi
pop esi
pop ebp
pop ebx
je 0x40a747
mov al, byte [ecx - 1]
test al, al
je 0x40a73d
cmp al, 0xff
je 0x40a73d
dec al
mov byte [ecx - 1], al
jmp 0x40a747
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x5c]
mov al, byte [esp + 3]
mov dword fs:[0], ecx
add esp, 0x68
ret 8