Function at 0x10052c70
Capabilities:
Access peb ldr_data
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d645f
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], 0
lea ecx, [esi + 0x1c]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [esi + 0x30], 8
mov dword [esi + 0x2c], 0
jb 0x10052cdc
mov ecx, dword [esi + 0x1c]
xor eax, eax
mov word [ecx], ax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
mov dword [ebp - 0x7c], vtable.LString.0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
push 0x11c
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.1008da10
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x2b8]
add esp, 0xc
mov dword [ebp - 0x2b8], 0x11c
push eax
call edi
mov dword [ebp - 0x40c], eax
test eax, eax
jne 0x10052d58
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 0x114
push eax
call edi
test eax, eax
je 0x1005360c
cmp dword [ebp - 0x2b4], 6
jne 0x10052e67
cmp dword [ebp - 0x2b0], 2
jne 0x10052e67
mov ebx, dword fs:[0x18]
test ebx, ebx
je 0x10052e67
mov ebx, dword [ebx + 0x30]
test ebx, ebx
je 0x10052e67
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebx + 0xa8]
mov dword [ebp - 0x2b0], eax
movzx eax, word [ebx + 0xac]
mov dword [ebp - 0x2ac], eax
movzx eax, word [ebx + 0xae]
test ax, ax
je 0x10052e5b
mov edi, eax
lea ecx, [ebp - 0x140]
push 0x100f0bac
shr edi, 8
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_wchar_t_const__
push 0xa
push edi
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_int__int_
mov byte [ebp - 4], 2
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x10c], 8
lea ecx, [ebp - 0x13c]
push dword [ebp - 0x110]
cmovae eax, dword [ebp - 0x120]
push eax
call fcn.10011440
lea ecx, [ebp - 0x124]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [ebp - 0x128], 8
lea ecx, [ebp - 0x13c]
lea edx, [ebp - 0x2a4]
cmovae ecx, dword [ebp - 0x13c]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10052e40
lea ecx, [ebp - 0x140]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x2b0]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebp - 0xd0], vtable.LString.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
push 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xcc]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100eeb18
call fcn.10002b70
xor eax, eax
mov dword [ebp - 0xb4], vtable.LString.0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
push 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push 0x100eeb18
call fcn.10002b70
push 0xa
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3b4]
push dword [esi + 0x14]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_int__int_
mov ebx, eax
push 0xa
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x398]
push dword [esi + 0x10]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_int__int_
mov edi, eax
push 0xa
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x37c]
push dword [esi + 0xc]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_int__int_
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x360]
push eax
call sym.XNewLookSch.dll_class_LString___cdecl_operator_class_LString_const___class_LString_const__
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x344]
mov byte [ebp - 4], 0xa
push eax
call sym.XNewLookSch.dll_class_LString___cdecl_operator_class_LString_const___class_LString_const__
add esp, 0xc
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0x328]
push eax
call sym.XNewLookSch.dll_class_LString___cdecl_operator_class_LString_const___class_LString_const__
add esp, 0xc
push ebx
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x30c]
push eax
call sym.XNewLookSch.dll_class_LString___cdecl_operator_class_LString_const___class_LString_const__
add esp, 0xc
add eax, 4
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x1c]
cmp ecx, eax
je 0x10052fc9
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x10052fc0
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10002b70
lea ecx, [ebp - 0x30c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x328]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x344]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x360]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x37c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x398]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x3b4]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0xb4]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
movzx eax, word [ebp - 0x1a0]
mov dword [esi + 0x34], eax
movzx eax, byte [ebp - 0x19e]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x2a8]
sub eax, 1
je 0x10053611
sub eax, 1
jne 0x10053644
mov eax, dword [ebp - 0x2b4]
cmp eax, 6
jne 0x100530c0
mov eax, dword [ebp - 0x2b0]
test eax, eax
jne 0x1005307c
mov dword [esi], 8
jmp 0x1005326c
cmp eax, 1
jne 0x1005308c
mov dword [esi], 9
jmp 0x1005326c
cmp eax, 2
jne 0x1005309c
mov dword [esi], 0xa
jmp 0x1005326c
cmp eax, 3
jne 0x100530ac
mov dword [esi], 0xb
jmp 0x1005326c
cmp eax, 4
jne 0x1005326c
mov dword [esi], 0xc
jmp 0x1005326c
cmp eax, 0xa
jne 0x100530dd
cmp dword [ebp - 0x2b0], 0
jne 0x1005326c
mov dword [esi], 0xd
jmp 0x1005326c
cmp eax, 5
jne 0x10053261
mov eax, dword [ebp - 0x2b0]
cmp eax, 2
jne 0x10053248
mov dword [esi], 7
call sym.XNewLookSch.dll_bool___cdecl_LEnvironment::IsX64_void_
test al, al
je 0x10053237
lea ecx, [ebp - 0x400]
call sym.XNewLookSch.dll_public:_void___thiscall_LRegEdit::constructor_void_
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0xe
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_wchar_t_const__
push 0x20019
push reloc.OLEAUT32.dll_SysReAllocString
push 0
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x400]
call sym.XNewLookSch.dll_public:_bool___thiscall_LRegEdit::OpenDir_class_LString_const___bool__struct_HKEY_____unsigned_long_int_
lea ecx, [ebp - 0x2d4]
mov bl, al
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x1005322c
lea ecx, [ebp - 0xec]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_void_
push str.ProductName
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x10
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_wchar_t_const__
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x400]
call sym.XNewLookSch.dll_public:_bool___thiscall_LRegEdit::GetStr_class_LString_const___class_LString__
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x10
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x15c]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_wchar_t_const__
cmp dword [ebp - 0x144], 8
lea ecx, [ebp - 0x158]
mov edx, dword [ebp - 0xd8]
lea edi, [ebp - 0xe8]
cmovae ecx, dword [ebp - 0x158]
cmp dword [ebp - 0xd4], 8
cmovae edi, dword [ebp - 0xe8]
cmp edx, dword [ebp - 0x148]
jne 0x1005320a
test edx, edx
je 0x10053206
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x1005320a
add ecx, 2
sub edx, 1
jne 0x100531f5
mov bl, 1
jmp 0x1005320c
xor bl, bl
lea ecx, [ebp - 0x15c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x10053221
mov dword [esi], 6
lea ecx, [ebp - 0xec]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x400]
call sym.XNewLookSch.dll_public:_void___thiscall_LRegEdit::destructor_void_
mov eax, dword [ebp - 0x2b4]
cmp eax, 5
jne 0x10053261
mov eax, dword [ebp - 0x2b0]
cmp eax, 1
jne 0x10053255
mov dword [esi], 6
jmp 0x1005326c
test eax, eax
jne 0x1005326c
mov dword [esi], 5
jmp 0x1005326c
cmp eax, 4
ja 0x1005326c
mov dword [esi], 4
xor eax, eax
mov dword [ebp - 0x98], vtable.LString.0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0x12
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100532a3
sub ecx, edx
lea eax, [ebp - 0x2a4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.10002b70
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
lea ecx, [ebp - 0x78]
push dword [ebp - 0x84]
cmovae eax, dword [ebp - 0x94]
push eax
call fcn.10002b70
lea ecx, [ebp - 0x98]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
xor eax, eax
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
push 4
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x104]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push str.__t_r_n
call fcn.10002b70
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x7c]
call sym.XNewLookSch.dll_public:_class_LString____thiscall_LString::trim_both_class_LString_const__
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
push str.Service_Pack
lea ecx, [ebp - 0x178]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
cmp dword [ebp - 0x160], 8
lea edi, [ebp - 0x174]
cmovae edi, dword [ebp - 0x174]
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10053382
sub edx, ecx
lea ecx, [ebp - 0x78]
sar edx, 1
cmp dword [ebp - 0x64], 8
push edx
cmovae ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x68]
push edi
push 0
call fcn.100126c0
add esp, 0xc
lea ecx, [ebp - 0x178]
mov edi, eax
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
test edi, edi
js 0x10053401
lea eax, [ebp - 0x28a]
push eax
lea ecx, [ebp - 0x194]
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_wchar_t_const__
cmp dword [ebp - 0x17c], 8
lea eax, [ebp - 0x190]
cmovae eax, dword [ebp - 0x190]
push eax
call fcn.1009f9a4
add esp, 4
lea ecx, [eax - 1]
cmp ecx, 9
ja 0x100533f6
mov dword [esi + 8], eax
lea ecx, [ebp - 0x194]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [ebp - 0x40c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10053514
mov al, byte [ebp - 0x19e]
cmp al, 1
jne 0x10053470
cmp dword [ebp - 0x2b4], 4
jne 0x10053433
mov dword [esi + 4], 1
jmp 0x100535cf
mov eax, dword [ebp - 0x1a0]
test eax, 0x200
je 0x1005344c
mov dword [esi + 4], 4
jmp 0x100535c6
test eax, 0x100
je 0x10053464
cmp dword [esi], 0xb
jne 0x10053464
mov dword [esi + 4], 3
jmp 0x100535c6
mov dword [esi + 4], 2
jmp 0x100535c6
cmp al, 3
jne 0x100535c6
cmp dword [ebp - 0x2b4], 5
jne 0x100534fa
mov eax, dword [ebp - 0x2b0]
cmp eax, 2
jne 0x100534cb
mov ecx, dword [ebp - 0x1a0]
test cl, cl
jns 0x100534a2
mov dword [esi + 4], 7
jmp 0x10053644
test cl, 2
je 0x100534b3
mov dword [esi + 4], 3
jmp 0x10053644
xor eax, eax
mov edx, 0x400
cmp cx, dx
sete al
add eax, 5
mov dword [esi + 4], eax
jmp 0x10053644
test eax, eax
jne 0x100534fa
mov eax, dword [ebp - 0x1a0]
test al, al
jns 0x100534e5
mov dword [esi + 4], 8
jmp 0x10053644
test al, 2
mov eax, 0
setne al
add eax, 0xb
mov dword [esi + 4], eax
jmp 0x10053644
test byte [ebp - 0x1a0], 2
mov eax, 0
setne al
add eax, 9
mov dword [esi + 4], eax
jmp 0x100535c6
lea eax, [ebp - 0x408]
mov dword [ebp - 0x404], 0x50
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005360c
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005360c
cmp dword [ebp - 0x404], 0x50
ja 0x1005360c
push dword [ebp - 0x408]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x60]
push eax
push str.WINNT
call edi
test eax, eax
jne 0x1005359a
mov dword [esi + 4], 1
lea eax, [ebp - 0x60]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x100535b0
mov dword [esi + 4], 0xb
lea eax, [ebp - 0x60]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x100535c6
mov dword [esi + 4], 0xc
cmp dword [ebp - 0x2b4], 4
jne 0x10053644
lea eax, [ebp - 0x2a4]
push str.Service_Pack_6
push eax
call fcn.10092559
add esp, 8
test eax, eax
jne 0x10053644
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x410]
call ebx
jmp 0x10053644
or esi, 0xffffffff
jmp 0x10053646
cmp dword [ebp - 0x2b4], 4
jne 0x10053644
mov eax, dword [ebp - 0x2b0]
test eax, eax
jne 0x1005362c
mov dword [esi], 1
jmp 0x10053644
cmp eax, 0xa
jne 0x10053639
mov dword [esi], 2
jmp 0x10053644
cmp eax, 0x5a
jne 0x10053644
mov dword [esi], 3
xor esi, esi
lea ecx, [ebp - 0x7c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret