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

Disassembly:
push 0xffffffffffffffff
push 0x40f48e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
push edi
mov eax, dword [0x416020]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], 2
cmp dword [esp + 0x74], 0
jne 0x409ca3
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
jmp 0x409d91
mov ecx, dword [esp + 0x58]
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, ecx
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x409cbc
call ebp
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x409ccb
lea eax, [esp + 0x48]
cmp byte [esi + eax], 0x5c
jne 0x409cdd
test esi, esi
jl 0x409cdd
sub edi, 1
sub esi, 1
jmp 0x409cb2
push edi
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP80.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
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 3
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x74]
xor esi, esi
cmp esi, eax
jbe 0x409d1e
call ebp
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x78], 0x10
mov ecx, dword [esp + 0x64]
jae 0x409d2d
lea ecx, [esp + 0x64]
cmp byte [ecx + esi], 0x5c
jne 0x409d3c
cmp esi, eax
jae 0x409d3c
add esi, 1
jmp 0x409d14
sub eax, esi
push eax
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP80.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
lea ecx, [esp + 0x64]
mov byte [esp + 0x40], 4
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x4117a4
lea ecx, [esp + 0x48]
call dword [0x4111c4]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___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
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], 1
mov byte [esp + 0x3c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0x3c], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret