Function at 0x481780
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff16b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x53e200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x298], 0x20019
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4817d7
mov ecx, dword [ebp - 0x298]
or ecx, 0x100
mov dword [ebp - 0x298], ecx
jmp 0x4817e9
mov edx, dword [ebp - 0x298]
or edx, 0x200
mov dword [ebp - 0x298], edx
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [ebp - 0x298]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004064a0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481a6a
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2ac], eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x29c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2a0]
add ecx, 1
mov dword [ebp - 0x2a0], ecx
cmp dword [ebp - 0x2b0], 0
jne 0x481a5d
lea edx, [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x298]
push eax
push 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481a4a
mov byte [ebp - 0x291], 1
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x20
call fcn.0041dd30
movzx eax, al
test eax, eax
je 0x481a30
lea ecx, [ebp - 0x218]
push ecx
push 0x506ce4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.00465580
add esp, 0xc
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2b8]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.0041e7f0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00406380
cmp dword [ebp + 8], 0x80000002
jne 0x481961
lea ecx, [ebp - 0x230]
push ecx
push 0x506ce8
lea edx, [ebp - 0x260]
push edx
call fcn.00481470
add esp, 0xc
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a7d0
lea ecx, [ebp - 0x260]
call fcn.00406380
jmp 0x4819f1
cmp dword [ebp + 8], 0x80000001
jne 0x4819aa
lea ecx, [ebp - 0x230]
push ecx
push str.HKEY_CURRENT_USER_
lea edx, [ebp - 0x278]
push edx
call fcn.00481470
add esp, 0xc
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a7d0
lea ecx, [ebp - 0x278]
call fcn.00406380
jmp 0x4819f1
cmp dword [ebp + 8], 0x80000000
jne 0x4819f1
lea ecx, [ebp - 0x230]
push ecx
push str.HKEY_CLASSES_ROOT_
lea edx, [ebp - 0x290]
push edx
call fcn.00481470
add esp, 0xc
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a7d0
lea ecx, [ebp - 0x290]
call fcn.00406380
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x29c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x20
call fcn.00481710
mov byte [ebp - 0x291], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00406380
mov edx, dword [ebp - 0x2a8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x291]
test eax, eax
jne 0x481a4a
jmp 0x481a5d
mov cx, word [0x506d60]
mov word [ebp - 0x218], cx
jmp 0x48181e
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c626c
mov esp, ebp
pop ebp
ret 0xc