Function at 0x41b6a0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x468629
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485b90]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x268]
mov eax, dword [esp + 0x26c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x264]
lea ecx, [esp + 0x24]
push ecx
push edx
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x268], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41b9d2
mov edx, dword [esp + 0x24]
push esi
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41b9d2
lea eax, [esp + 0x48]
shr eax, 0x10
mov dword [esp + 0x38], eax
jmp 0x41b764
mov eax, dword [esp + 0x38]
inc dword [esp + 0x20]
mov ecx, dword [0x484064]
mov dword [esp + 0x14], ecx
test ax, ax
jne 0x41b78a
lea edx, [esp + 0x48]
movzx eax, dx
push eax
lea ecx, [esp + 0x18]
call fcn.00417e50
jmp 0x41b7c6
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x41b7c6
push esi
lea ecx, [esp + 0x18]
call fcn.004157b0
test eax, eax
je 0x41b7c6
lea eax, [esi + esi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x41b7c6
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.0044e980
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 1
call fcn.00416030
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
push 0x477760
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00419dc0
lea ecx, [esp + 0x48]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x268], 2
call fcn.00419dc0
mov eax, dword [esp + 0x2c]
lea ecx, [eax - 0xc]
mov byte [esp + 0x25c], 4
cmp ecx, dword [0x484060]
je 0x41b846
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b846
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.0044eec4
add esp, 4
mov ebp, dword [ebx + 0x18]
mov edi, dword [ebx]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.0041a200
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x41b868
cmp eax, edi
je 0x41b86d
call fcn.0044e8ea
cmp dword [esi + 4], ebp
je 0x41b880
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0041b620
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
push edx
push ebx
push ecx
mov dword [esp + 0x48], esp
mov esi, esp
jl 0x41b8ac
mov dword [esi], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41b93c
mov ecx, dword [0x484064]
mov dword [esi], ecx
mov eax, dword [esp + 0x24]
mov ebx, eax
test eax, eax
jne 0x41b8c2
xor ebp, ebp
jmp 0x41b8cb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 1
lea ecx, [eax - 0xc]
jg 0x41b8db
cmp ebp, dword [eax - 4]
jle 0x41b913
add eax, 0xfffffff4
cmp eax, dword [0x484060]
je 0x41b907
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b8ff
mov eax, dword [esi]
sub eax, 0xc
push eax
call fcn.0044eec4
add esp, 4
mov edx, dword [0x484064]
mov dword [esi], edx
push ebp
mov ecx, esi
call fcn.004157b0
test eax, eax
je 0x41b938
mov eax, dword [esi]
lea edi, [ebp + ebp]
lea ecx, [edi + 2]
cmp ecx, edi
jb 0x41b92b
push edi
push ebx
push eax
call fcn.0044e980
add esp, 0xc
mov edx, dword [esi]
mov dword [edx - 8], ebp
mov eax, dword [esi]
xor ecx, ecx
mov word [edi + eax], cx
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
call fcn.0041b6a0
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
mov dword [esp + 0x1c], 0x104
cmp edx, dword [0x484060]
je 0x41b97a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b97a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0044eec4
add esp, 4
mov esi, dword [esp + 0x14]
lea eax, [esi - 0xc]
mov byte [esp + 0x25c], 0
cmp eax, dword [0x484060]
je 0x41b9a8
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b9a8
push esi
call fcn.0044eec4
add esp, 4
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x5c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41b760
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x264]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x484060]
je 0x41ba10
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41ba10
mov edx, dword [esp + 0x264]
add edx, 0xfffffff4
push edx
call fcn.0044eec4
add esp, 4
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0044e29c
add esp, 0x24c
ret 0xc