Function at 0x403070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40489c
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x40840c]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40840c]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], edi
call fcn.00402f50
xor eax, eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x18], eax
cmp dword [edi + 0xc], eax
jbe 0x403358
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2c]
mov edx, dword [esp + 0x1c]
lea ebp, [edx + eax]
mov eax, dword [sym.imp.MSVCP90.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 0
mov ecx, ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.MSVCP90.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__::erase_unsigned_int__unsigned_int_]
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x18]
mov ebx, dword [edx + eax*4]
push 0x7c
push ebx
call dword [sym.imp.MSVCR90.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x403338
lea ecx, [esi + 1]
push 0x7c
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x403338
sub eax, esi
inc eax
push eax
push esi
lea ecx, [esp + 0xfc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
lea edx, [esp + 0xf4]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x124], 1
call fcn.00402de0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, dword [esp + 0x4c]
test esi, esi
je 0x40317c
cmp esi, dword [esp + 0x34]
je 0x403182
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebp
jne 0x4032cd
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0xf8]
push edx
mov byte [esp + 0x124], 2
call fcn.004039c0
add esp, 8
test al, al
je 0x4032b8
mov ecx, dword [esp + 0xec]
test ecx, ecx
jbe 0x403213
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x4031de
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0xec]
cmp dword [esp + 0xf0], 0x10
mov eax, dword [esp + 0xdc]
jae 0x4031f6
lea eax, [esp + 0xdc]
cmp byte [eax + esi], 0x5c
jne 0x403213
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [eax]
dec ecx
push edx
push ecx
lea ecx, [esp + 0xe0]
call dword [sym.imp.MSVCP90.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__::erase_unsigned_int__unsigned_int_]
sub esp, 0x1c
lea eax, [esp + 0xf4]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call dword [sym.imp.MSVCP90.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__]
sub esp, 0x1c
lea edx, [esp + 0x12c]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov byte [esp + 0x158], 3
call dword [sym.imp.MSVCP90.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__]
lea eax, [esp + 0xd8]
push eax
mov byte [esp + 0x158], 2
call fcn.00402440
add esp, 0x3c
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 4
call fcn.00401e60
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x124], 5
call fcn.00402cf0
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x68]
mov byte [esp + 0x11c], 4
call fcn.00401d30
lea ecx, [esp + 0xa0]
mov byte [esp + 0x11c], 2
call fcn.00401d30
lea ecx, [esp + 0xd8]
mov byte [esp + 0x11c], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebp, dword [esp + 0x4c]
test esi, esi
je 0x4032db
cmp esi, dword [esp + 0x34]
je 0x4032e1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebp
jne 0x4032ef
mov eax, dword [esp + 0x20]
mov byte [eax + 0x1c], 1
jmp 0x40331b
test esi, esi
jne 0x403394
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x403308
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x20]
add edi, 0x28
push edi
call dword [sym.imp.MSVCP90.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__]
mov ebx, dword [esp + 0x24]
inc ebx
lea ecx, [esp + 0xf4]
mov byte [esp + 0x11c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP90.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_char_const__]
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0x44
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0xc]
jb 0x4030de
lea ecx, [esp + 0x34]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00402fe0
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.00403bae
add esp, 0x10c
ret
mov esi, dword [esi]
jmp 0x4032fd