Function at 0x4811e0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5b2437
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x47c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48c]
mov esi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x276]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x278], cx
call fcn.0058e300
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x294]
push eax
push esi
mov dword [esp + 0x6c], 0x104
mov dword [esp + 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x481599
xor ecx, ecx
mov dword [esp + 0x28], ecx
test eax, eax
jbe 0x481599
jmp 0x4812ba
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x5c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x80]
push edx
push ecx
push esi
mov dword [esp + 0x58], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x481586
mov eax, dword [0x621148]
mov edx, dword [eax + 0xc]
mov ecx, 0x621148
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x6c]
push eax
push str.CLSID_s
lea edi, [esp + 0x2c]
mov dword [esp + 0x48c], 0
call fcn.00406280
push 0x10
call fcn.005851c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x481371
mov edx, dword [0x621148]
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
call eax
add eax, 0x10
mov dword [ebx], eax
mov edx, dword [0x621148]
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
call eax
add eax, 0x10
mov dword [ebx + 4], eax
mov edx, dword [0x621148]
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
call eax
add eax, 0x10
mov dword [ebx + 8], eax
jmp 0x481373
xor ebx, ebx
mov ebp, dword [esp + 0x24]
push ecx
add ebp, 0xfffffff0
mov eax, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.00406580
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x34]
call fcn.00481d20
lea edi, [ebx + 8]
mov byte [esp + 0x484], 1
call fcn.00406500
mov byte [esp + 0x484], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4813d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.00406580
add eax, 0x10
mov dword [esi], eax
call fcn.00482600
test eax, eax
je 0x48141f
mov dword [esp + 0x484], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481586
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
jmp 0x481586
push ecx
mov eax, ebp
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.00406580
add eax, 0x10
lea ecx, [esp + 0x38]
mov dword [esi], eax
call fcn.00481620
mov edi, ebx
mov byte [esp + 0x484], 2
call fcn.00406500
mov byte [esp + 0x484], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481472
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov eax, ebp
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.00406580
add eax, 0x10
lea ecx, [esp + 0x30]
mov dword [esi], eax
call fcn.004819a0
lea edi, [ebx + 4]
mov byte [esp + 0x484], 3
call fcn.00406500
mov byte [esp + 0x484], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4814c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x621148]
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x6c]
push ecx
push str.CLSID_sDefaultIcon
lea edi, [esp + 0x20]
mov byte [esp + 0x48c], 4
call fcn.00406280
mov esi, dword [esp + 0x20]
add esp, 4
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x58], esp
mov edi, esp
call fcn.00406580
add eax, 0x10
mov dword [edi], eax
call fcn.00481e70
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 4]
cmp dword [edx - 0xc], 0
je 0x481544
mov eax, dword [ebx + 8]
cmp dword [eax - 0xc], 0
je 0x481544
cmp dword [ebx + 0xc], 0
je 0x481544
mov edi, dword [esp + 0x44]
add edi, 4
lea ebx, [esp + 0x20]
call fcn.004949a0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x484], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481565
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
or ecx, 0xffffffff
lea eax, [ebp + 0xc]
mov dword [esp + 0x484], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481586
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x1c]
jb 0x4812b6
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.005886fc
add esp, 0x474
ret 4