Function at 0x46e990
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fe61
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4bf6bc]
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 0x46e9f8
mov eax, dword [esi]
jmp 0x46e9fa
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 0x46ebc9
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.00483260
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 0x46eba6
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 0x46eac4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00408600
mov byte [ebp - 4], 1
push 4
push str..KB
mov edx, esi
push edx
xor eax, eax
call fcn.0045fa30
cmp eax, 0xffffffff
jne 0x46eb67
push 8
push str._Office
mov eax, esi
push eax
xor eax, eax
call fcn.0045fa30
cmp eax, 0xffffffff
jne 0x46eb67
mov edi, dword [ebp - 0x24c]
mov ecx, esi
call fcn.0045f950
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x46eb3d
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0047bd91
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 0x46ea63
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x46eb82
mov eax, dword [ebp - 0x234]
push eax
call fcn.0047bd91
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 0x46ea63
mov eax, dword [ebp - 0x238]
cmp eax, ebx
je 0x46ebbd
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 0x46eda4
cmp dword [esi + 0x14], 8
jb 0x46ebdc
mov eax, dword [esi]
jmp 0x46ebde
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 0x46eda4
xor eax, eax
cmp edi, ebx
je 0x46ec1a
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 0x46ed9e
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 0x46ed87
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 0x46ecb1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00408600
mov byte [ebp - 4], 2
push 4
push str..KB
mov eax, esi
push eax
xor eax, eax
call fcn.0045fa30
cmp eax, 0xffffffff
jne 0x46ed4e
push 8
push str._Office
mov ecx, esi
push ecx
xor eax, eax
call fcn.0045fa30
cmp eax, 0xffffffff
jne 0x46ed4e
mov edi, dword [ebp - 0x24c]
mov ecx, esi
call fcn.0045f950
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x46ed2a
mov edx, dword [ebp - 0x234]
push edx
call fcn.0047bd91
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 0x46ec50
mov byte [ebp - 4], bl
cmp dword [ebp - 0x220], 8
jb 0x46ed69
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
jmp 0x46ec50
cmp esi, ebx
je 0x46ed98
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 0x46edda
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.0047bd9c
mov esp, ebp
pop ebp
ret