Function at 0x24d8ffb0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x24da21f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x24], 1
call dword [0x24dad0a8]
mov edi, dword [sym.imp.cxlibw_3_1.dll_public:_unsigned_int___thiscall_CXLib301::SString_t_unsigned_short_int__1_::getNBytesForWChar_void_const]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], 0
call edi
mov esi, eax
add esi, 2
mov eax, esi
shr eax, 1
shl eax, 1
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x24d9003b
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], al
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
lea ecx, [esp + 0x38]
call edi
mov ebp, eax
add ebp, 2
mov ecx, ebp
shr ecx, 1
shl ecx, 1
push ecx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x24d9009b
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push esi
mov esi, dword [sym.imp.cxlibw_3_1.dll_public:_unsigned_int___thiscall_CXLib301::SString_t_unsigned_short_int__1_::toWChar_unsigned_short_int___unsigned_int_const]
push ebx
lea ecx, [esp + 0x3c]
call esi
push ebp
push edi
lea ecx, [esp + 0x40]
call esi
call fcn.24d8ff50
test al, al
je 0x24d90155
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push ebx
push ecx
call dword [0x24dad208]
test eax, eax
jne 0x24d901e8
mov ecx, dword [esp + 0x10]
mov ebp, dword [0x24dad20c]
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ecx
call ebp
test eax, eax
jne 0x24d9014b
mov edx, dword [esp + 0x1c]
shr edx, 1
shl edx, 1
push edx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x24d9014b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
push edx
call ebp
test eax, eax
jne 0x24d90142
mov ecx, dword [esp + 0x3c]
push esi
call dword [sym.imp.cxlibw_3_1.dll_public:_class_CXLib301::SWCharString____thiscall_CXLib301::SWCharString::operator_unsigned_short_int_const__]
mov dword [esp + 0x18], 1
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
push eax
jmp 0x24d901e2
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push ebx
push eax
call dword [0x24dad208]
test eax, eax
jne 0x24d901e8
mov ebp, dword [0x24dad20c]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
call ebp
test eax, eax
jne 0x24d901dd
mov ecx, dword [esp + 0x1c]
shr ecx, 1
shl ecx, 1
push ecx
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x24d901dd
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ecx
call ebp
test eax, eax
jne 0x24d901d4
mov ecx, dword [esp + 0x3c]
push esi
call dword [sym.imp.cxlibw_3_1.dll_public:_class_CXLib301::SWCharString____thiscall_CXLib301::SWCharString::operator_unsigned_short_int_const__]
mov dword [esp + 0x18], 1
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.cxlibw_3_1.dll_public:_void___thiscall_CXLib301::SWCharString::destructor_void_]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret