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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414650
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00408a50
test al, al
je 0x4083bb
mov edi, dword [esp + 0x78]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x1c]
mov al, byte [edi]
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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push ebp
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
dec eax
mov dword [esp + 0x70], ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp byte [eax], 0x5c
je 0x408113
mov ecx, dword [esp + 0x20]
dec ecx
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp byte [eax], 0x2f
je 0x408113
push 0x5c
push 1
lea ecx, [esp + 0x20]
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_unsigned_int__char_]
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00408480
test al, al
jne 0x4081d2
lea eax, [esp + 0x78]
lea ecx, [esp + 0x28]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x70], 1
cmp eax, ebp
jne 0x408148
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 eax
lea edx, [esp + 0x17]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push 0x41b324
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x4c]
push eax
call fcn.0040bfd0
add esp, 0x14
mov ecx, eax
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00409f20
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 1
push 1
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x28]
mov eax, dword [edx]
push eax
push ebp
push ecx
lea ecx, [esi + 0x20]
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, esi
call fcn.0040d4b0
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 4]
mov byte [esp + 0x70], 0
push 1
lea ecx, [esp + 0x2c]
jmp 0x4083a1
sub esp, 0x10
lea eax, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
push 0x41b30c
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [esp + 0x48]
push ecx
call fcn.0040bfd0
add esp, 0x14
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esi + 0x20]
mov byte [esp + 0x70], 3
mov edx, dword [edx]
push edx
push ebp
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, esi
call fcn.0040d4b0
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 0
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 ebx, [esi + 0xc4]
xor edi, edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x4083d2
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 4
cmp ebp, ecx
jae 0x4083d2
mov eax, dword [esi + 0xc8]
lea ecx, [esp + 0x28]
lea edx, [edi + eax]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____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 [esi + 0xc8]
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 4
lea edx, [edi + eax]
lea eax, [esi + 0x40]
push edx
push eax
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____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__
add esp, 0x18
push ebp
mov ecx, ebx
mov byte [esp + 0x74], 5
call fcn.00409cf0
push eax
lea edx, [esp + 0x7c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push 0x41b2f8
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x6c]
push eax
call fcn.0040bfd0
add esp, 0x14
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x7c], 6
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____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__
add esp, 0xc
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 + 0x70], 7
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esi + 0x20]
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, esi
call fcn.0040d4b0
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 4]
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], 5
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, [esp + 0x38]
push 1
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.004091c0
test al, al
mov byte [esp + 0x70], 4
push 1
lea ecx, [esp + 0x3c]
je 0x408390
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 ecx, dword [esp + 0x2c]
xor edx, edx
cmp ecx, edx
mov byte [esp + 0x70], 0
je 0x40837b
mov al, byte [ecx - 1]
test al, al
je 0x40836f
cmp al, 0xff
je 0x40836f
dec al
mov byte [ecx - 1], al
jmp 0x40837b
dec ecx
push ecx
call fcn.004134f0
add esp, 4
xor edx, edx
inc ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
add edi, 0x10
jmp 0x40823f
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 byte [esp + 0x70], 0
push 1
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x74], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 4
sub esp, 0x10
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
push 0x41b2e0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea eax, [esp + 0x68]
push eax
call fcn.0040bfd0
add esp, 0x14
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 + 0x70], 8
mov edx, dword [ecx]
lea ecx, [esi + 0x20]
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 ecx, esi
call fcn.0040d4b0
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40844d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x408444
cmp al, 0xff
je 0x408444
dec al
mov byte [ecx], al
jmp 0x40844d
push ecx
call fcn.004134f0
add esp, 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x408476
mov al, byte [ecx - 1]
test al, al
je 0x40846c
cmp al, 0xff
je 0x40846c
dec al
mov byte [ecx - 1], al
mov al, 1
jmp 0x4083bd
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov al, 1
jmp 0x4083bd