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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52e5ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10c0
call fcn.004bd0a0
mov eax, dword [0x58ada8]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x58ada8
mov dword [esp + 0x24], ebx
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov edx, dword [0x58ada8]
mov ecx, 0x58ada8
mov dword [esp + 0x10dc], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x10e0], 1
mov dword [esp + 0x34], 0x9c
call edi
mov esi, eax
test esi, esi
jne 0x46e5b7
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call edi
test eax, eax
jne 0x46e5b7
mov byte [esp + 0x10dc], al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46ee7e
mov eax, dword [esp + 0x40]
cmp eax, 2
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x46e837
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x537f50
call fcn.0040e1f0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.OS_Family
mov byte [esp + 0x10e8], 2
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e2a0
test esi, esi
je 0x46e778
mov ecx, dword [esp + 0x34]
cmp ecx, 5
jb 0x46e778
mov al, byte [esp + 0xca]
cmp al, 1
je 0x46e700
jbe 0x46e822
cmp al, 3
ja 0x46e822
cmp dword [esp + 0x38], 2
jne 0x46e6af
mov eax, dword [esp + 0xc8]
test ah, 4
je 0x46e65e
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_Server_2003__Web_Edition
jmp 0x46e8bc
mov al, byte [esp + 0xc8]
test al, al
jns 0x46e67f
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_Server_2003__Datacenter_Edition
jmp 0x46e8bc
test al, 2
je 0x46e699
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_Server_2003__Enterprise_Edition
jmp 0x46e8bc
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_Server_2003__Standard_Edition
jmp 0x46e8bc
mov al, byte [esp + 0xc8]
test al, al
jns 0x46e6d0
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_2000_Datacenter_Server
jmp 0x46e8bc
test al, 2
je 0x46e6ea
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_2000_Advanced_Server
jmp 0x46e8bc
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_2000_Server
jmp 0x46e8bc
cmp ecx, 6
jne 0x46e730
mov eax, dword [esp + 0xc8]
test ah, 2
mov esi, str.Windows_LongHorn_Professional
je 0x46e826
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_LongHorn_Home_Edition
jmp 0x46e8bc
cmp dword [esp + 0x38], 1
jne 0x46e762
mov eax, dword [esp + 0xc8]
test ah, 2
mov esi, str.Windows_XP_Professional
je 0x46e826
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_XP_Home_Edition
jmp 0x46e8bc
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_2000_Professional
jmp 0x46e8bc
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46e80c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd4]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ProductType
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46e80c
push str.WinNT
lea edx, [esp + 0xd4]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x46e7f6
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_NT_Workstation
jmp 0x46e8bc
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_NT_Server
jmp 0x46e8bc
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, str.Windows_NT
jmp 0x46e8bc
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
jmp 0x46e8bc
cmp eax, 1
jne 0x46ee62
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Windows
call fcn.0040e1f0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.OS_Family
mov byte [esp + 0x10e8], 3
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e2a0
mov eax, dword [esp + 0x34]
cmp eax, 4
mov ecx, dword [esp + 0x38]
ja 0x46e893
jne 0x46e88c
test ecx, ecx
ja 0x46e893
mov esi, str.Windows_95
jmp 0x46e8b7
cmp ecx, 0x5a
jae 0x46e8b2
cmp byte [esp + 0x45], 0x41
jne 0x46e8ab
mov byte [esp + 0x44], 0
mov esi, str.Windows_98_Second_Edition
jmp 0x46e8b7
mov esi, str.Windows_98
jmp 0x46e8b7
mov esi, str.Windows_ME
movzx ebp, word [esp + 0x3c]
push ecx
push eax
lea eax, [esp + 0x24]
push str._d._d
push eax
call fcn.004297d0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.0040e1f0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.OS_Platform
mov byte [esp + 0x10e8], 4
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e2a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x46e94b
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00404780
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x28], esp
push str.OS_Version
mov byte [esp + 0x10e8], 5
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e2a0
mov dl, byte [esp + 0x44]
mov cl, 0x20
xor eax, eax
cmp dl, cl
jne 0x46e96e
cmp eax, 0x80
jae 0x46e9af
mov dl, byte [esp + eax + 0x45]
inc eax
cmp dl, cl
je 0x46e957
cmp eax, 0x80
jae 0x46e9af
mov cl, byte [esp + eax + 0x44]
test cl, cl
je 0x46e9af
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.OS_ServicePack
mov byte [esp + 0x10e8], 6
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e350
push ebp
lea eax, [esp + 0x20]
push 0x537e84
push eax
call fcn.004297d0
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
add esp, 8
mov dword [esp + 0x1c], esp
mov ebp, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x46e9f2
cmp eax, dword [esi]
jne 0x46e9f2
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x46ea2d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x46ea07
jmp fcn.004013f0
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add eax, 0x10
mov dword [ebp], eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.OS_BuildNumber
mov byte [esp + 0x10e8], 7
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e2a0
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46eae8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd4]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.Version
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46eae8
push ecx
lea edx, [esp + 0xd4]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.IE_Version
mov byte [esp + 0x10e8], 8
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e350
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ed7f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd4]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x537660
mov esi, 0x1000
push eax
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x46eb6d
push ecx
lea edx, [esp + 0xd4]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.IE_UserAgent
mov byte [esp + 0x10e8], 9
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e350
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push str.ProxyEnable
push edx
mov dword [esp + 0x2c], 4
call edi
test eax, eax
jne 0x46ebc0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46ebc0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xd4]
push ecx
push 0
push 0
push str.ProxyServer
push edx
mov dword [esp + 0x2c], esi
call edi
mov esi, eax
jmp 0x46ebc3
or esi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46ed7f
mov al, byte [esp + 0xd0]
test al, al
lea ebp, [esp + 0xd0]
je 0x46ed7f
lea esp, [esp]
cmp byte [ebp], 0
mov esi, ebp
je 0x46ed0d
lea esp, [esp]
cmp byte [ebp], 0x3d
je 0x46ec0e
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x46ec00
cmp byte [ebp], 0
je 0x46ed0d
push str.IE_Proxy_
call fcn.004bb3e1
add esp, 4
push eax
push str.IE_Proxy_
lea ecx, [esp + 0x24]
call fcn.004046c0
mov byte [ebp], 0
push esi
lea ecx, [esp + 0x20]
inc ebp
call fcn.004296e0
cmp byte [ebp], 0
mov eax, ebp
je 0x46ed35
nop
cmp byte [ebp], 0x3b
je 0x46ec5e
mov cl, byte [ebp + 1]
inc ebp
test cl, cl
jne 0x46ec50
cmp byte [ebp], 0
je 0x46ed35
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
mov byte [ebp], 0
push eax
inc ebp
call fcn.00429610
mov esi, dword [esp + 0x20]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
mov byte [esp + 0x10e4], 0xb
mov dword [esp + 0x20], esp
mov ebx, esp
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x46ecb3
cmp eax, dword [esi]
jne 0x46ecb3
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x46ece7
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x46ea02
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x10e4], 1
call fcn.0046e350
cmp byte [ebp], 0
jne 0x46ebf0
mov ebx, dword [esp + 0x24]
jmp 0x46ed79
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.IE_Proxy
mov byte [esp + 0x10e8], 0xa
call fcn.0040e1f0
jmp 0x46ed66
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00429610
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
mov byte [esp + 0x10e8], 0xc
call fcn.00404780
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e350
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftDataAccess
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46ee33
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd4]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.FullInstallVer
push eax
call edi
mov esi, eax
test esi, esi
je 0x46ede8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd4]
push edx
push 0
push 0
push str.Version
push eax
call edi
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46ee33
push ecx
lea edx, [esp + 0xd4]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00429610
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x537da8
mov byte [esp + 0x10e8], 0xd
call fcn.0040e1f0
mov ecx, ebx
mov byte [esp + 0x10e4], 1
call fcn.0046e350
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x10dc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ee59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x46ee8b
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x10dc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ee88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x10dc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46eead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10d4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret