Function at 0x405e60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40714f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x28], 0x40837c
mov dword [esi], 0x408360
mov dword [esi + 0x28], 0x408350
mov al, byte [esp + 0x54]
lea ebp, [esi + 0x30]
push ebx
mov ecx, ebp
mov dword [esp + 0x50], ebx
mov byte [ebp], 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 + 0x54]
push ebx
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 1
mov dword [esi], 0x408334
mov dword [esi + 0x28], 0x408324
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], ebx
mov dword [esi + 8], 5
mov dword [esi + 0x4c], edi
mov byte [esi + 0x40], bl
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 0x40b198
call sub.MSVCRT.dll_strlen
add esp, 4
mov edi, eax
lea ecx, [esp + 0x24]
push 1
push 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 0x405f43
mov edx, dword [esp + 0x28]
push edi
push 0x40b198
push edx
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], edi
add esp, 0xc
mov byte [eax + edi], bl
mov cl, byte [esp + 0x54]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 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_]
push 0x40b398
call sub.MSVCRT.dll_strlen
add esp, 4
mov edi, eax
lea ecx, [esp + 0x14]
push 1
push 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 0x405f99
mov edx, dword [esp + 0x18]
push edi
push 0x40b398
push edx
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edi
add esp, 0xc
mov byte [eax + edi], bl
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x58], 3
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 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 + 0x4c], 4
mov edx, dword [ecx]
mov ecx, ebp
push edx
push ebx
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 eax, dword [esp + 0x38]
cmp eax, ebx
je 0x405ff2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x405fe9
cmp al, 0xff
je 0x405fe9
dec al
mov byte [ecx], al
jmp 0x405ff2
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x406023
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40601a
cmp al, 0xff
je 0x40601a
dec al
mov byte [ecx], al
jmp 0x406023
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x406054
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40604b
cmp al, 0xff
je 0x40604b
dec al
mov byte [ecx], al
jmp 0x406054
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x44]
mov byte [esi + 0x40], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8