Function at 0x40d760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ade1
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x463074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push 0x80
push 0
mov dword [ebp - 0x28c], esi
push eax
mov dword [ebp - 0x28c], 4
call fcn.00429c60
push 0x110
lea eax, [ebp - 0x280]
mov dword [ebp - 0x284], 0x114
push 0
push eax
call fcn.00429c60
add esp, 0x18
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00429c60
push dword [ebp - 0x278]
lea eax, [ebp - 0x90]
push dword [ebp - 0x27c]
push dword [ebp - 0x280]
push str._d._d._d
push 0x40
push eax
call fcn.004101e0
add esp, 0x24
mov dword [ebp - 0x130], 0
xor eax, eax
mov dword [ebp - 0x12c], 7
lea ecx, [ebp - 0x90]
mov word [ebp - 0x140], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d841
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.004032f0
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00410050
add esp, 8
mov edx, dword [ebp - 0x12c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x40d8c4
mov ecx, dword [ebp - 0x140]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dab7
push edx
push ecx
call fcn.0042730e
add esp, 8
xor eax, eax
mov dword [ebp - 0x130], 0
mov word [ebp - 0x140], ax
lea eax, [ebp - 0x288]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [ebp - 0x12c], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d92a
movups xmm0, xmmword [ebp - 0x128]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x118]
movq qword [esi + 0x10], xmm0
jmp 0x40da98
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x288]
call edi
test eax, eax
je 0x40d9a4
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x128]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x128], 0
movq xmm0, qword [ebp - 0x118]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
jmp 0x40da8d
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x288]
call edi
test eax, eax
jne 0x40d953
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0x80
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x288]
call edi
push dword [ebp - 0x288]
test eax, eax
je 0x40da02
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40da7f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x90]
push dword [ebp - 0x280]
push str._d._d._s
push 0x40
push eax
call fcn.004101e0
add esp, 0x18
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x158]
push eax
call fcn.00401d50
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.00410050
add esp, 8
lea ecx, [ebp - 0x128]
push eax
call fcn.00409270
lea ecx, [ebp - 0x170]
call fcn.00402040
lea ecx, [ebp - 0x158]
call fcn.00402090
lea eax, [ebp - 0x128]
mov ecx, esi
push eax
call fcn.004088c0
lea ecx, [ebp - 0x128]
call fcn.00402040
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042784a
mov esp, ebp
pop ebp
ret 4
call fcn.0042c719
int3