Function at 0x4098a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd6af
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x6d26f8]
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 ebx, edx
mov dword [ebp - 0x2a0], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x27c], reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x26d], 0
xor edi, edi
mov dword [ebp - 0x274], edi
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x409924
mov eax, dword [ebp - 0x274]
cmp eax, 1
jne 0x40992a
mov dword [ebp - 0x274], eax
cmp dword [ebx + 0x18], 8
jb 0x409935
mov ecx, dword [ebx + 4]
jmp 0x409938
lea ecx, [ebx + 4]
lea edx, [ebp - 0x298]
push edx
dec eax
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x100
or eax, 0x20019
push eax
push edi
push ecx
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c0c
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov edx, dword [ebp - 0x298]
push edx
lea esi, [ebp - 0x2a4]
call fcn.00414070
mov dword [ebp - 4], edi
mov dword [ebp - 0x280], 0xff
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x29c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x280], 0xff
mov ecx, dword [ebp - 0x29c]
mov eax, ecx
inc ecx
mov dword [ebp - 0x29c], ecx
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x280]
push ecx
lea edx, [ebp - 0x218]
push edx
push eax
mov eax, dword [ebp - 0x298]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x278], eax
cmp eax, edi
jne 0x409bb6
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00406ff0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x274]
dec edx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 4
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x27c]
call fcn.004140e0
mov edx, eax
lea edi, [ebp - 0x288]
call fcn.0040b9c0
mov edx, 0x692fe8
call fcn.0040ba00
cmp dword [ebx + 0x18], 8
jb 0x409a3c
mov edx, dword [ebx + 4]
jmp 0x409a3f
lea edx, [ebx + 4]
lea edi, [ebp - 0x288]
call fcn.0040ba00
mov edx, 0x692fe8
call fcn.0040ba00
lea edx, [ebp - 0x218]
call fcn.0040ba00
mov eax, str.InprocServer32
lea ecx, [ebp - 0x2c0]
call fcn.0040b2d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x2dc]
call fcn.0040b2a0
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c0]
lea edi, [ebp - 0x234]
call fcn.00408bf0
add esp, 4
mov byte [ebp - 4], 6
lea esi, [ebp - 0x2dc]
call fcn.00440d90
mov byte [ebp - 4], 7
lea esi, [ebp - 0x2c0]
call fcn.00440d90
cmp dword [ebp - 0x220], 0
je 0x409b3d
mov ecx, dword [ebp - 0x294]
push ecx
lea esi, [ebp - 0x26c]
call fcn.0040b310
mov byte [ebp - 4], 8
mov edx, esi
push edx
mov eax, 0x692fe8
call fcn.0040b370
push 0
mov eax, edi
push eax
or eax, 0xffffffff
call fcn.0040d290
mov esi, dword [ebp - 0x290]
push esi
lea ecx, [ebp - 0x26c]
push ecx
xor edx, edx
lea ecx, [ebp - 0x28c]
call fcn.00408650
add esp, 8
test al, al
jne 0x409b31
push esi
mov edx, edi
push edx
xor edx, edx
lea ecx, [ebp - 0x28c]
call fcn.00408650
add esp, 8
mov byte [ebp - 4], 7
lea esi, [ebp - 0x26c]
jmp 0x409b8a
push ebx
lea esi, [ebp - 0x250]
call fcn.0040b310
mov byte [ebp - 4], 9
mov eax, esi
push eax
mov eax, 0x692fe8
call fcn.0040b370
mov ecx, esi
push ecx
lea eax, [ebp - 0x218]
call fcn.0040b370
mov edx, dword [ebp - 0x294]
push edx
mov eax, dword [ebp - 0x27c]
push eax
mov edx, dword [ebp - 0x290]
mov ecx, esi
call fcn.00408fe0
add esp, 8
mov byte [ebp - 4], 7
call fcn.00440d90
mov byte [ebp - 4], 2
lea esi, [ebp - 0x234]
call fcn.00440d90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0041b9d0
mov eax, dword [ebp - 0x278]
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x409bd6
cmp eax, edi
je 0x40999d
cmp eax, 0x103
jne 0x409bec
mov byte [ebp - 0x26d], 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2a4]
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx]
call eax
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x274]
mov ecx, eax
dec eax
mov dword [ebp - 0x274], eax
test ecx, ecx
jne 0x40992a
mov al, byte [ebp - 0x26d]
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.0059393a
mov esp, ebp
pop ebp
ret