Function at 0x401ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x42603c]
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.00413700
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x592]
push ecx
mov word [ebp - 0x594], ax
call fcn.00413700
add esp, 0x18
mov dword [ebp - 0x598], 0x190
mov dword [ebp - 0x5a0], 1
xor eax, eax
jmp 0x401c10
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindows_NTCurrentVersion]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x401c10
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 0x401c5b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
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 0x41c574
push ecx
call ebx
test eax, eax
jne 0x401ce9
lea eax, [ebp - 0x194]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c95
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401cb0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401cb0
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 0x401cd5
mov edx, dword [0x41c58c]
mov dword [edi], edx
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
mov dword [ebp - 0x598], 0x190
call fcn.00413700
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 0x41c590
push ecx
call ebx
test eax, eax
jne 0x401d98
lea eax, [ebp - 0x194]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d40
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401d56
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 0x401d80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401d80
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.00413700
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 0x401e44
lea eax, [ebp - 0x194]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401df0
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401e06
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 0x401e30
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401e30
mov ecx, dword [0x41c5f8]
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 0x401e64
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040f51e
mov esp, ebp
pop ebp
ret