Function at 0x4049f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x18e
push ecx
lea edx, [ebp - 0x192]
push edx
mov dword [ebp - 0x5a4], eax
mov word [ebp - 0x194], cx
call fcn.00427f40
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x592]
push ecx
mov word [ebp - 0x594], ax
call fcn.00427f40
add esp, 0x18
mov dword [ebp - 0x598], 0x190
mov dword [ebp - 0x5a0], 1
xor eax, eax
jmp 0x404a60
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindows_NTCurrentVersion]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x404a60
lea edx, [ebp - 0x59c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x194]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404aab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
lea ecx, [ebp - 0x598]
push ecx
mov ecx, dword [ebp - 0x59c]
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x5a0]
push eax
push 0
push 0x43ba5c
push ecx
call ebx
test eax, eax
jne 0x404b39
lea eax, [ebp - 0x194]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ae5
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
jmp 0x404b00
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404b00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x594]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404b25
mov edx, dword [0x43ba74]
mov dword [edi], edx
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
mov dword [ebp - 0x598], 0x190
call fcn.00427f40
add esp, 0xc
lea ecx, [ebp - 0x598]
push ecx
mov ecx, dword [ebp - 0x59c]
lea edx, [ebp - 0x194]
push edx
lea eax, [ebp - 0x5a0]
push eax
push 0
push 0x43ba78
push ecx
call ebx
test eax, eax
jne 0x404be8
lea eax, [ebp - 0x194]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404b90
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404ba6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x594]
add edi, 0xfffffffe
jmp 0x404bd0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404bd0
mov ecx, 0xb
mov esi, str.__CurrentBuildNumber:
rep movsd dword es:[edi], dword [esi]
push 0x190
lea edx, [ebp - 0x194]
push 0
push edx
mov dword [ebp - 0x598], 0x190
call fcn.00427f40
add esp, 0xc
lea eax, [ebp - 0x598]
push eax
mov eax, dword [ebp - 0x59c]
lea ecx, [ebp - 0x194]
push ecx
lea edx, [ebp - 0x5a0]
push edx
push 0
push str.CurrentBuildNumber
push eax
call ebx
test eax, eax
jne 0x404c94
lea eax, [ebp - 0x194]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c40
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404c56
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x594]
add edi, 0xfffffffe
jmp 0x404c80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404c80
mov ecx, dword [0x43bae0]
mov dword [edi], ecx
mov edx, dword [ebp - 0x59c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x5a4]
pop edi
lea eax, [ebp - 0x594]
mov ecx, eax
pop esi
sub edx, ecx
pop ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404cb4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00421294
mov esp, ebp
pop ebp
ret