Function at 0x402be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 0x18], eax
mov dword [esp + 0x28], ebx
mov dword [esi], 0x4082a4
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov al, byte [esp + 0x30]
lea edi, [esi + 0x28]
push ebx
mov ecx, edi
mov byte [esp + 0x2c], 1
mov byte [edi], 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 cl, byte [esp + 0x30]
lea ebp, [esi + 0x38]
push ebx
mov byte [esp + 0x2c], 2
mov byte [ebp], cl
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__::_Tidy_bool_]
push str.KVGetExtractInterface
mov byte [esp + 0x2c], 3
mov dword [esi], 0x408314
call sub.MSVCRT.dll_strlen
add esp, 4
mov ebx, eax
mov ecx, edi
push 1
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 0x402c98
mov eax, dword [edi + 4]
push ebx
push str.KVGetExtractInterface
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 4]
add esp, 0xc
add eax, ebx
mov dword [edi + 8], ebx
mov byte [eax], 0
push str.kvxtract
call sub.MSVCRT.dll_strlen
add esp, 4
mov ebx, eax
mov ecx, ebp
push 1
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 0x402cd3
mov eax, dword [ebp + 4]
push ebx
push str.kvxtract
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 4]
add esp, 0xc
add eax, ebx
mov dword [ebp + 8], ebx
mov byte [eax], 0
push 0x38
mov dword [esi + 8], 2
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
xor edx, edx
mov byte [esp + 0x28], 4
cmp eax, edx
je 0x402d49
mov al, byte [ebp]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x28], esp
push edx
mov ecx, ebx
mov byte [ebx], 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]
mov ecx, ebx
push edx
push 0
push 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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
sub esp, 0x10
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x4c], 5
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::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x48], 4
call fcn.00401350
xor edx, edx
jmp 0x402d4b
xor eax, eax
sub esp, 0x10
mov dword [esi + 0x48], eax
mov al, byte [edi]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov byte [esp + 0x38], 3
mov byte [ecx], al
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
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 eax, dword [eax]
push eax
push edx
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 ecx, dword [esi + 0x48]
call fcn.00401650
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x74], eax
test ecx, ecx
je 0x402da8
mov al, byte [ecx - 1]
test al, al
je 0x402d9e
cmp al, 0xff
je 0x402d9e
dec al
mov byte [ecx - 1], al
jmp 0x402da8
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x10