Function at 0x402470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x447044]
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.004272d0
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x592]
push ecx
mov word [ebp - 0x594], ax
call fcn.004272d0
add esp, 0x18
mov dword [ebp - 0x598], 0x190
mov dword [ebp - 0x5a0], 1
xor eax, eax
jmp 0x4024e0
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindows_NTCurrentVersion]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x4024e0
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 0x40252b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f53e
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 0x434b9c
push ecx
call ebx
test eax, eax
jne 0x4025b9
lea eax, [ebp - 0x194]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402565
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402580
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402580
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 0x4025a5
mov edx, dword [0x434bb4]
mov dword [edi], edx
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
mov dword [ebp - 0x598], 0x190
call fcn.004272d0
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 0x434bb8
push ecx
call ebx
test eax, eax
jne 0x402668
lea eax, [ebp - 0x194]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402610
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402626
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 0x402650
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402650
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.004272d0
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 0x402714
lea eax, [ebp - 0x194]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4026c0
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4026d6
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 0x402700
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402700
mov ecx, dword [0x434c20]
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 0x402734
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041f53e
mov esp, ebp
pop ebp
ret