Function at 0x402440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x441044]
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.004238b0
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x592]
push ecx
mov word [ebp - 0x594], ax
call fcn.004238b0
add esp, 0x18
mov dword [ebp - 0x598], 0x190
mov dword [ebp - 0x5a0], 1
xor eax, eax
jmp 0x4024b0
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindows_NTCurrentVersion]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x4024b0
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 0x4024fb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcde
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 0x431b5c
push ecx
call ebx
test eax, eax
jne 0x402589
lea eax, [ebp - 0x194]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402535
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402550
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402550
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 0x402575
mov edx, dword [0x431b74]
mov dword [edi], edx
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
mov dword [ebp - 0x598], 0x190
call fcn.004238b0
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 0x431b78
push ecx
call ebx
test eax, eax
jne 0x402638
lea eax, [ebp - 0x194]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4025e0
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4025f6
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 0x402620
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402620
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.004238b0
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 0x4026e4
lea eax, [ebp - 0x194]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402690
lea edi, [ebp - 0x594]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4026a6
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 0x4026d0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4026d0
mov ecx, dword [0x431be0]
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 0x402704
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041bcde
mov esp, ebp
pop ebp
ret