Function at 0x472b60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0731
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov esi, edx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x472bc8
mov eax, dword [esi]
jmp 0x472bca
mov eax, esi
lea edx, [ebp - 0x238]
push edx
push 0x20219
push ebx
push eax
push ecx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x472d99
mov eax, dword [ebp - 0x238]
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
mov dword [ebp - 0x240], ebx
push edx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0x200
mov word [ebp - 0x218], cx
call fcn.004a2b10
add esp, 0xc
mov dword [ebp - 0x254], 0x104
xor edi, edi
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x238]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x218]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x472d76
inc edi
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], 0x104
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x472c94
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00415f60
mov byte [ebp - 4], 1
push 4
push str..KB
mov edx, esi
push edx
xor eax, eax
call fcn.00413a10
cmp eax, 0xffffffff
jne 0x472d37
push 8
push str._Office
mov eax, esi
push eax
xor eax, eax
call fcn.00413a10
cmp eax, 0xffffffff
jne 0x472d37
mov edi, dword [ebp - 0x24c]
mov ecx, esi
call fcn.0046fe70
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x472d0d
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0049b30a
add esp, 4
mov edi, dword [ebp - 0x258]
mov esi, dword [ebp - 0x248]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
jmp 0x472c33
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x472d52
mov eax, dword [ebp - 0x234]
push eax
call fcn.0049b30a
add esp, 4
mov esi, dword [ebp - 0x248]
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
jmp 0x472c33
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x472d8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], ebx
mov edi, dword [ebp - 0x244]
mov dword [ebp - 0x240], ebx
cmp byte [ebp + 0xc], bl
je 0x472f74
cmp dword [esi + 0x14], 8
jb 0x472dac
mov eax, dword [esi]
jmp 0x472dae
mov eax, esi
lea edx, [ebp - 0x238]
push edx
push 0x20119
push ebx
push eax
mov eax, dword [ebp - 0x250]
push eax
mov dword [ebp - 0x238], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x472f74
xor eax, eax
cmp edi, ebx
je 0x472dea
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], ebx
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], 0x100
cmp eax, ebx
jne 0x472f6e
mov dword [ebp - 0x248], 0x104
xor edi, edi
lea ebx, [ebx]
mov esi, dword [ebp - 0x238]
lea edx, [ebp - 0x260]
push edx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x218]
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x472f57
inc edi
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x234], dx
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x248], 0x104
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x472e81
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00415f60
mov byte [ebp - 4], 2
push 4
push str..KB
mov eax, esi
push eax
xor eax, eax
call fcn.00413a10
cmp eax, 0xffffffff
jne 0x472f1e
push 8
push str._Office
mov ecx, esi
push ecx
xor eax, eax
call fcn.00413a10
cmp eax, 0xffffffff
jne 0x472f1e
mov edi, dword [ebp - 0x24c]
mov ecx, esi
call fcn.0046fe70
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x472efa
mov edx, dword [ebp - 0x234]
push edx
call fcn.0049b30a
add esp, 4
mov edi, dword [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
jmp 0x472e20
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x472f39
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
jmp 0x472e20
cmp esi, ebx
je 0x472f68
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov edi, dword [ebp - 0x244]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x472faa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x244], ebx
mov eax, esi
mov dword [ebp - 0x240], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret