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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c25cf
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x4f9008]
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 0x46b2dc
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.XNewLook.exe_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.004773d0
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 0x46b358
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 0x114
push eax
call edi
test eax, eax
je 0x46bc0c
cmp dword [ebp - 0x2b4], 6
jne 0x46b467
cmp dword [ebp - 0x2b0], 2
jne 0x46b467
mov ebx, dword fs:[0x18]
test ebx, ebx
je 0x46b467
mov ebx, dword [ebx + 0x30]
test ebx, ebx
je 0x46b467
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 0x46b45b
mov edi, eax
lea ecx, [ebp - 0x140]
push 0x4d822c
shr edi, 8
call sym.XNewLook.exe_public:_void___thiscall_LString::constructor_wchar_t_const__
push 0xa
push edi
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call sym.XNewLook.exe_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.00408f20
lea ecx, [ebp - 0x124]
call sym.XNewLook.exe_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 0x46b440
lea ecx, [ebp - 0x140]
call sym.XNewLook.exe_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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push 0x4d2b80
call fcn.00409940
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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push 0x4d2b80
call fcn.00409940
push 0xa
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3b4]
push dword [esi + 0x14]
call sym.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_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.XNewLook.exe_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 0x46b5c9
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x46b5c0
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00409940
lea ecx, [ebp - 0x30c]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x328]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x344]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x360]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x37c]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x398]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x3b4]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0xb4]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0
call sym.XNewLook.exe_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 0x46bc11
sub eax, 1
jne 0x46bc44
mov eax, dword [ebp - 0x2b4]
cmp eax, 6
jne 0x46b6c0
mov eax, dword [ebp - 0x2b0]
test eax, eax
jne 0x46b67c
mov dword [esi], 8
jmp 0x46b86c
cmp eax, 1
jne 0x46b68c
mov dword [esi], 9
jmp 0x46b86c
cmp eax, 2
jne 0x46b69c
mov dword [esi], 0xa
jmp 0x46b86c
cmp eax, 3
jne 0x46b6ac
mov dword [esi], 0xb
jmp 0x46b86c
cmp eax, 4
jne 0x46b86c
mov dword [esi], 0xc
jmp 0x46b86c
cmp eax, 0xa
jne 0x46b6dd
cmp dword [ebp - 0x2b0], 0
jne 0x46b86c
mov dword [esi], 0xd
jmp 0x46b86c
cmp eax, 5
jne 0x46b861
mov eax, dword [ebp - 0x2b0]
cmp eax, 2
jne 0x46b848
mov dword [esi], 7
call sym.XNewLook.exe_bool___cdecl_LEnvironment::IsX64_void_
test al, al
je 0x46b837
lea ecx, [ebp - 0x400]
call sym.XNewLook.exe_public:_void___thiscall_LRegEdit::constructor_void_
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0xe
call sym.XNewLook.exe_public:_void___thiscall_LString::constructor_wchar_t_const__
push 0x20019
push connect
push 0
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x400]
call sym.XNewLook.exe_public:_bool___thiscall_LRegEdit::OpenDir_class_LString_const___bool__struct_HKEY_____unsigned_long_int_
lea ecx, [ebp - 0x2d4]
mov bl, al
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x46b82c
lea ecx, [ebp - 0xec]
call sym.XNewLook.exe_public:_void___thiscall_LString::constructor_void_
push 0x4d673c
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x10
call sym.XNewLook.exe_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.XNewLook.exe_public:_bool___thiscall_LRegEdit::GetStr_class_LString_const___class_LString__
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 0x10
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x15c]
call sym.XNewLook.exe_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 0x46b80a
test edx, edx
je 0x46b806
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x46b80a
add ecx, 2
sub edx, 1
jne 0x46b7f5
mov bl, 1
jmp 0x46b80c
xor bl, bl
lea ecx, [ebp - 0x15c]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
test bl, bl
je 0x46b821
mov dword [esi], 6
lea ecx, [ebp - 0xec]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
lea ecx, [ebp - 0x400]
call sym.XNewLook.exe_public:_void___thiscall_LRegEdit::destructor_void_
mov eax, dword [ebp - 0x2b4]
cmp eax, 5
jne 0x46b861
mov eax, dword [ebp - 0x2b0]
cmp eax, 1
jne 0x46b855
mov dword [esi], 6
jmp 0x46b86c
test eax, eax
jne 0x46b86c
mov dword [esi], 5
jmp 0x46b86c
cmp eax, 4
ja 0x46b86c
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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b8a3
sub ecx, edx
lea eax, [ebp - 0x2a4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.00409940
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.00409940
lea ecx, [ebp - 0x98]
call sym.XNewLook.exe_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.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
push str.__t_r_n
call fcn.00409940
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x7c]
call sym.XNewLook.exe_public:_class_LString____thiscall_LString::trim_both_class_LString_const__
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
push str.Service_Pack
lea ecx, [ebp - 0x178]
call sym.XNewLook.exe_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 0x46b982
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.00408da0
add esp, 0xc
lea ecx, [ebp - 0x178]
mov edi, eax
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
test edi, edi
js 0x46ba01
lea eax, [ebp - 0x28a]
push eax
lea ecx, [ebp - 0x194]
call sym.XNewLook.exe_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.004864d4
add esp, 4
lea ecx, [eax - 1]
cmp ecx, 9
ja 0x46b9f6
mov dword [esi + 8], eax
lea ecx, [ebp - 0x194]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [ebp - 0x40c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x46bb14
mov al, byte [ebp - 0x19e]
cmp al, 1
jne 0x46ba70
cmp dword [ebp - 0x2b4], 4
jne 0x46ba33
mov dword [esi + 4], 1
jmp 0x46bbcf
mov eax, dword [ebp - 0x1a0]
test eax, 0x200
je 0x46ba4c
mov dword [esi + 4], 4
jmp 0x46bbc6
test eax, 0x100
je 0x46ba64
cmp dword [esi], 0xb
jne 0x46ba64
mov dword [esi + 4], 3
jmp 0x46bbc6
mov dword [esi + 4], 2
jmp 0x46bbc6
cmp al, 3
jne 0x46bbc6
cmp dword [ebp - 0x2b4], 5
jne 0x46bafa
mov eax, dword [ebp - 0x2b0]
cmp eax, 2
jne 0x46bacb
mov ecx, dword [ebp - 0x1a0]
test cl, cl
jns 0x46baa2
mov dword [esi + 4], 7
jmp 0x46bc44
test cl, 2
je 0x46bab3
mov dword [esi + 4], 3
jmp 0x46bc44
xor eax, eax
mov edx, 0x400
cmp cx, dx
sete al
add eax, 5
mov dword [esi + 4], eax
jmp 0x46bc44
test eax, eax
jne 0x46bafa
mov eax, dword [ebp - 0x1a0]
test al, al
jns 0x46bae5
mov dword [esi + 4], 8
jmp 0x46bc44
test al, 2
mov eax, 0
setne al
add eax, 0xb
mov dword [esi + 4], eax
jmp 0x46bc44
test byte [ebp - 0x1a0], 2
mov eax, 0
setne al
add eax, 9
mov dword [esi + 4], eax
jmp 0x46bbc6
lea eax, [ebp - 0x408]
mov dword [ebp - 0x404], 0x50
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46bc0c
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 0x46bc0c
cmp dword [ebp - 0x404], 0x50
ja 0x46bc0c
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 0x46bb9a
mov dword [esi + 4], 1
lea eax, [ebp - 0x60]
push eax
push str.LANMANNT
call edi
test eax, eax
jne 0x46bbb0
mov dword [esi + 4], 0xb
lea eax, [ebp - 0x60]
push eax
push str.SERVERNT
call edi
test eax, eax
jne 0x46bbc6
mov dword [esi + 4], 0xc
cmp dword [ebp - 0x2b4], 4
jne 0x46bc44
lea eax, [ebp - 0x2a4]
push str.Service_Pack_6
push eax
call fcn.0047cdb1
add esp, 8
test eax, eax
jne 0x46bc44
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x410]
call ebx
jmp 0x46bc44
or esi, 0xffffffff
jmp 0x46bc46
cmp dword [ebp - 0x2b4], 4
jne 0x46bc44
mov eax, dword [ebp - 0x2b0]
test eax, eax
jne 0x46bc2c
mov dword [esi], 1
jmp 0x46bc44
cmp eax, 0xa
jne 0x46bc39
mov dword [esi], 2
jmp 0x46bc44
cmp eax, 0x5a
jne 0x46bc44
mov dword [esi], 3
xor esi, esi
lea ecx, [ebp - 0x7c]
call sym.XNewLook.exe_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.00475880
mov esp, ebp
pop ebp
ret