Function at 0x480070
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c28e9
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x298], ecx
mov esi, edx
mov dword [ebp - 0x2b0], esi
xor ebx, ebx
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x4800d9
mov eax, dword [esi]
jmp 0x4800db
mov eax, esi
mov dword [ebp - 0x294], ebx
lea edx, [ebp - 0x294]
push edx
push 0x20219
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4803c3
mov dword [ebp - 0x2a0], ebx
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], 0x200
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push ebx
lea edx, [ebp - 0x21e]
push edx
call fcn.004a4260
add esp, 0xc
mov dword [ebp - 0x2a8], 0x104
mov dword [ebp - 0x294], ebx
lea eax, [ebp - 0x2b8]
push eax
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x294]
push eax
mov esi, dword [ebp - 0x2a4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4803a6
inc dword [ebp - 0x294]
mov dword [ebp - 0x2a8], 0x104
mov edi, 7
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
xor ecx, ecx
mov word [ebp - 0x23c], cx
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4801b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x23c]
call fcn.00419690
mov byte [ebp - 4], 1
cmp dword [ebp - 0x22c], ebx
jne 0x480212
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x4801f8
mov edx, dword [ebp - 0x23c]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
xor eax, eax
mov word [ebp - 0x23c], ax
jmp 0x480148
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x23c]
push ecx
mov edx, str..KB
call fcn.00412d80
cmp eax, 0xffffffff
jne 0x480295
push ebx
lea edx, [ebp - 0x23c]
push edx
mov edx, str._Office
call fcn.00412d80
cmp eax, 0xffffffff
jne 0x480295
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x23c]
mov edi, dword [ebp - 0x2ac]
call fcn.0046f290
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x480277
mov eax, dword [ebp - 0x23c]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], ebx
xor ecx, ecx
mov word [ebp - 0x23c], cx
jmp 0x480148
mov byte [ebp - 4], bl
lea esi, [ebp - 0x23c]
call fcn.00426e80
mov byte [ebp - 4], bl
jmp 0x480148
cmp esi, ebx
je 0x4803b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov esi, dword [ebp - 0x2b0]
cmp byte [ebp + 0xc], bl
je 0x48072d
cmp dword [esi + 0x14], 8
jb 0x4803d4
mov esi, dword [esi]
mov dword [ebp - 0x294], ebx
mov edi, dword [ebp - 0x29c]
cmp edi, ebx
je 0x480447
cmp dword [edi], ebx
je 0x48042b
push 0x4cefd8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x4803fe
mov eax, 1
jmp 0x480462
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4803f7
push ebx
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x294]
push edx
push 0x20119
push ebx
push esi
mov ecx, dword [ebp - 0x298]
push ecx
call eax
jmp 0x480462
cmp dword [edi + 4], ebx
je 0x4803f7
lea edx, [ebp - 0x294]
push edx
push 0x20119
push ebx
push esi
mov eax, dword [ebp - 0x298]
push eax
jmp 0x48045c
lea ecx, [ebp - 0x294]
push ecx
push 0x20119
push ebx
push esi
mov edx, dword [ebp - 0x298]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x48072d
xor eax, eax
mov ecx, dword [ebp - 0x2a4]
cmp ecx, ebx
je 0x480483
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a0], 0x100
cmp eax, ebx
jne 0x48072d
mov dword [ebp - 0x2a8], 0x104
mov dword [ebp - 0x298], ebx
lea edx, [ebp - 0x2b8]
push edx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x298]
push edx
mov esi, dword [ebp - 0x2a4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x480716
inc dword [ebp - 0x298]
mov dword [ebp - 0x2a8], 0x104
mov edi, 7
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x480520
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x23c]
call fcn.00419690
mov byte [ebp - 4], 8
cmp dword [ebp - 0x22c], ebx
jne 0x480582
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x480568
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
xor edx, edx
mov word [ebp - 0x23c], dx
jmp 0x4804b7
mov byte [ebp - 4], 9
push ebx
lea eax, [ebp - 0x23c]
push eax
mov edx, str..KB
call fcn.00412d80
cmp eax, 0xffffffff
jne 0x480605
push ebx
lea ecx, [ebp - 0x23c]
push ecx
mov edx, str._Office
call fcn.00412d80
cmp eax, 0xffffffff
jne 0x480605
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x23c]
mov edi, dword [ebp - 0x2ac]
call fcn.0046f290
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x4805e7
mov edx, dword [ebp - 0x23c]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], ebx
xor eax, eax
mov word [ebp - 0x23c], ax
jmp 0x4804b7
mov byte [ebp - 4], bl
lea esi, [ebp - 0x23c]
call fcn.00426e80
mov byte [ebp - 4], bl
jmp 0x4804b7
cmp esi, ebx
je 0x480727
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov eax, dword [ebp - 0x2ac]
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
mov eax, dword [ebp - 0x2a4]
cmp eax, ebx
je 0x480769
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov eax, esi
mov dword [ebp - 0x2a0], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret