Function at 0x417530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ecx], ebx
xorps xmm0, xmm0
movups xmmword [ecx + 0x20], xmm0
xorps xmm0, xmm0
movsd qword [ecx + 0x30], xmm0
mov dword [ecx + 0x40], 4
mov dword [ecx + 0x44], 3
movsd qword [ecx + 0x48], xmm0
mov dword [ecx + 0x50], ebx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 0x48], edx
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x20], ebx
movsd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x40]
mov dword [edi], ebx
push edi
push 1
push ebx
push 0x4a7574
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41789f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov ecx, 4
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x18]
mov dword [edx], ecx
lea ecx, [ebp - 0x1c]
mov dword [ecx], ebx
push edx
push ecx
push edi
push ebx
push 0x4ad26a
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417602
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffd
xor ebx, ebx
cmp dword [ebp - 0x18], 4
mov ecx, 0
jne 0x4175fc
mov ecx, dword [ebp - 0x1c]
cmp eax, 2
cmovb ebx, ecx
lea edi, [ebp - 0x28]
lea ecx, [ebp - 0x34]
push edi
push str.DisplayVersion
call fcn.0040a990
movzx eax, byte [edi + 0xb]
test al, al
mov ecx, dword [edi + 4]
mov edx, eax
cmovs edx, ecx
test edx, edx
jne 0x417639
lea ecx, [ebp - 0x34]
push edi
push str.ReleaseId
call fcn.0040a990
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x40]
test al, al
movzx eax, al
cmovs eax, ecx
lea edx, [ebp - 0x28]
mov ecx, dword [edx]
cmovns ecx, edx
push eax
push ecx
push edi
call fcn.0044f6a0
add esp, 0xc
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x39]
mov dword [ebp - 0x15], eax
mov al, byte [ebp - 0x35]
mov byte [ebp - 0x44], al
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x417682
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
test ecx, ecx
jne 0x417992
cmp byte [ebp - 0x1d], 0
jns 0x4176a5
push dword [ebp - 0x28]
call fcn.0045e41e
add esp, 4
mov dword [esi + 0x10], ebx
cmp byte [esi + 0x2b], 0
jns 0x4176bb
lea eax, [esi + 0x20]
push dword [eax]
call fcn.0045e41e
add esp, 4
mov dword [esi + 0x20], edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x15]
mov dword [esi + 0x24], eax
mov dword [esi + 0x27], ecx
mov al, byte [ebp - 0x44]
mov byte [esi + 0x2b], al
mov ecx, dword [esi + 4]
mov eax, 0x16
cmp ecx, 0xa
mov dword [ebp - 0x44], esi
jne 0x417a32
mov ecx, dword [esi + 0xc]
cmp ecx, 0x585c
ja 0x41799e
cmp ecx, 0x55ef
ja 0x41772a
cmp ecx, 0x4f7b
ja 0x4179a8
cmp ecx, 0x4a64
ja 0x4179b2
je 0x4179bc
mov eax, 0x12
cmp ecx, 0x4a62
jbe 0x4178a8
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov eax, dword [0x4c4418]
mov ecx, dword [0x4b80e0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x417790
push 0x4c4418
call fcn.0045e453
add esp, 4
cmp dword [0x4c4418], 0xffffffff
jne 0x417790
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c4414], eax
push 0x4c4418
call fcn.0045e4a2
add esp, 4
mov ecx, dword [0x4c4414]
test ecx, ecx
je 0x4179f2
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x34]
mov word [edi], ax
call dword [0x4b1788]
push edi
lea eax, [ebp - 0x28]
push eax
push ebx
call ecx
test eax, eax
je 0x4177ef
movzx eax, word [ebp - 0x28]
cmp eax, 0x14c
jne 0x4179c6
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
movzx ecx, word [ebp - 0x34]
xor eax, eax
cmp ecx, 0x8664
setne al
inc eax
xor edx, edx
cmp ecx, 0xaa64
cmovne edx, eax
mov dword [esi + 0x44], edx
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
lea eax, [edi + 0x2c]
mov dword [ebp - 0x48], eax
movzx eax, word [esi + 0x114]
mov dword [edi + 0x18], eax
movzx eax, word [esi + 0x116]
mov dword [edi + 0x1c], eax
lea ebx, [esi + 0x14]
push ebx
call fcn.0045fe10
add esp, 4
push eax
push ebx
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.0044f6a0
add esp, 0xc
cmp byte [edi + 0x37], 0
jns 0x41783c
push dword [ebx]
call fcn.0045e41e
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [ebx], xmm0
mov eax, dword [0x4c4430]
mov dword [edi + 0x38], eax
mov eax, dword [0x4c4438]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 4]
cmp eax, 5
je 0x4178c4
cmp eax, 0xa
je 0x417871
cmp eax, 6
jne 0x417926
mov eax, dword [ebp + 8]
cmp eax, 0x45
jg 0x4178f3
cmp eax, 0x1b
mov esi, dword [ebp - 0x44]
ja 0x417953
mov ecx, 0x206f780
bt ecx, eax
jae 0x417944
mov dword [esi + 0x14], 2
jmp 0x417930
xor ecx, ecx
xor eax, eax
jmp 0x41763c
je 0x417a8d
mov eax, 0x10
cmp ecx, 0x4a60
ja 0x41772a
jmp 0x417a97
mov eax, dword [esi + 8]
cmp eax, 1
je 0x417911
cmp eax, 2
jne 0x417926
cmp byte [esi + 0x11a], 1
jne 0x4178e4
cmp word [0x4c441c], 9
je 0x41791a
cmp word [esi + 0x118], 0
js 0x417926
mov esi, dword [ebp - 0x44]
jmp 0x417893
lea ecx, [eax - 0x79]
cmp ecx, 9
mov esi, dword [ebp - 0x44]
ja 0x41795a
mov edx, 0x330
bt edx, ecx
jae 0x41797f
mov dword [esi + 0x14], 3
jmp 0x417930
test byte [esi + 0x119], 2
jne 0x417926
mov esi, dword [ebp - 0x44]
mov dword [esi + 0x14], 1
jmp 0x417930
mov esi, dword [ebp - 0x44]
mov dword [esi + 0x14], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x8010050
bt ecx, eax
jb 0x417908
cmp eax, 1
je 0x41791d
cmp eax, 0x30
je 0x41791d
jmp 0x417929
lea ecx, [eax - 0x46]
cmp ecx, 0xe
ja 0x41796c
mov edx, 0x4005
bt edx, ecx
jb 0x417908
add eax, 0xffffff5c
cmp eax, 2
jae 0x417929
mov dword [esi + 0x14], 5
jmp 0x417930
mov edx, 3
bt edx, ecx
jae 0x41795a
mov dword [esi + 0x14], 4
jmp 0x417930
push 1
call fcn.00413cf0
jmp 0x417694
mov eax, 0x17
jmp 0x41772a
mov eax, 0x15
jmp 0x41772a
mov eax, 0x14
jmp 0x41772a
mov eax, 0x13
jmp 0x41772a
test eax, eax
je 0x4179e3
add eax, 0xfffffe40
cmp eax, 4
ja 0x4179de
mov ecx, 0x15
bt ecx, eax
jb 0x4179eb
mov eax, 3
mov esi, dword [ebp - 0x44]
jmp 0x4177ce
mov eax, 2
jmp 0x4179e3
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4177ef
cmp dword [ebp - 0x28], 0
je 0x417a23
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], eax
jmp 0x4177ef
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x40], 0
jmp 0x4177ef
cmp ecx, 0xb
je 0x41772a
cmp ecx, 7
jae 0x417a5b
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
cmp ecx, 6
jne 0x417a6d
lea ecx, [edx + 3]
cmp edx, 3
mov eax, 6
cmovb eax, ecx
jmp 0x417a65
call fcn.00486740
mov eax, 0x18
mov esi, dword [ebp - 0x44]
jmp 0x41772a
xor eax, eax
test edx, edx
je 0x417a65
cmp ecx, 5
mov esi, dword [ebp - 0x44]
jne 0x41772a
xor eax, eax
cmp edx, 1
setne al
inc eax
jmp 0x41772a
mov eax, 0x11
jmp 0x41772a
mov eax, 0xf
cmp ecx, 0x47ba
ja 0x41772a
mov eax, 0xe
je 0x41772a
mov eax, 0xd
cmp ecx, 0x4562
ja 0x41772a
mov eax, 0xc
cmp ecx, 0x42ed
ja 0x41772a
mov eax, 0xb
cmp ecx, 0x3faa
ja 0x41772a
mov eax, 0xa
cmp ecx, 0x3ad6
ja 0x41772a
mov eax, 9
cmp ecx, 0x3838
ja 0x41772a
cmp ecx, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x41772a