Function at 0x410850
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x50d01c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x564020]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
lea ebx, [esi + esi + 2]
cmp ebx, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], esi
jge 0x410912
mov ecx, ebx
imul ecx, ecx, 0x5c
lea eax, [ecx + ebp]
lea edx, [eax - 0x5c]
push edx
push eax
call dword [esp + 0x1c]
add esp, 8
test al, al
je 0x4108bb
dec ebx
mov edi, dword [esp + 0x30]
mov esi, ebx
imul edi, edi, 0x5c
imul esi, esi, 0x5c
add esi, ebp
add edi, ebp
push esi
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [esi + 0x1c]
push eax
lea ecx, [edi + 0x1c]
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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esi + 0x38]
push ecx
lea ecx, [edi + 0x38]
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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [esi + 0x54]
mov dword [esp + 0x30], ebx
mov dword [edi + 0x54], edx
mov al, byte [esi + 0x58]
lea ebx, [ebx + ebx + 2]
cmp ebx, dword [esp + 0x34]
mov byte [edi + 0x58], al
jl 0x4108a2
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp ebx, edi
jne 0x410958
mov ecx, edi
imul esi, esi, 0x5c
imul ecx, ecx, 0x5c
lea ebx, [ecx + ebp - 0x5c]
add esi, ebp
push ebx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea edx, [ebx + 0x1c]
push edx
lea ecx, [esi + 0x1c]
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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebx + 0x38]
push eax
lea ecx, [esi + 0x38]
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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [ebx + 0x54]
mov dword [esi + 0x54], ecx
mov dl, byte [ebx + 0x58]
dec edi
mov byte [esi + 0x58], dl
mov dword [esp + 0x30], edi
mov esi, edi
mov eax, dword [esp + 0x14]
push eax
sub esp, 0x5c
mov ecx, esp
mov dword [esp + 0x74], esp
push ecx
lea edi, [esp + 0x9c]
call fcn.0040f8e0
mov edx, dword [esp + 0x78]
push edx
push ebp
mov ecx, esi
call fcn.004109d0
add esp, 0x68
lea ecx, [esp + 0x70]
mov dword [esp + 0x24], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x24], 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 ecx, edi
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret