Function at 0x409860
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6115cf
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x711ab8]
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 0x4098e4
mov eax, dword [ebp - 0x274]
cmp eax, 1
jne 0x4098ea
mov dword [ebp - 0x274], eax
cmp dword [ebx + 0x18], 8
jb 0x4098f5
mov ecx, dword [ebx + 4]
jmp 0x4098f8
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 0x409bcc
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov edx, dword [ebp - 0x298]
push edx
lea esi, [ebp - 0x2a4]
call fcn.00414060
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 0x409b76
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00406fa0
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.004140d0
mov edx, eax
lea edi, [ebp - 0x288]
call fcn.0040bab0
mov edx, 0x6ca140
call fcn.0040baf0
cmp dword [ebx + 0x18], 8
jb 0x4099fc
mov edx, dword [ebx + 4]
jmp 0x4099ff
lea edx, [ebx + 4]
lea edi, [ebp - 0x288]
call fcn.0040baf0
mov edx, 0x6ca140
call fcn.0040baf0
lea edx, [ebp - 0x218]
call fcn.0040baf0
mov eax, str.InprocServer32
lea ecx, [ebp - 0x2c0]
call fcn.0040b3c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x2dc]
call fcn.0040b390
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c0]
lea edi, [ebp - 0x234]
call fcn.00408ba0
add esp, 4
mov byte [ebp - 4], 6
lea esi, [ebp - 0x2dc]
call fcn.0044df60
mov byte [ebp - 4], 7
lea esi, [ebp - 0x2c0]
call fcn.0044df60
cmp dword [ebp - 0x220], 0
je 0x409afd
mov ecx, dword [ebp - 0x294]
push ecx
lea esi, [ebp - 0x26c]
call fcn.0040b400
mov byte [ebp - 4], 8
mov edx, esi
push edx
mov eax, 0x6ca140
call fcn.0040b460
push 0
mov eax, edi
push eax
or eax, 0xffffffff
call fcn.0040d5a0
mov esi, dword [ebp - 0x290]
push esi
lea ecx, [ebp - 0x26c]
push ecx
xor edx, edx
lea ecx, [ebp - 0x28c]
call fcn.00408600
add esp, 8
test al, al
jne 0x409af1
push esi
mov edx, edi
push edx
xor edx, edx
lea ecx, [ebp - 0x28c]
call fcn.00408600
add esp, 8
mov byte [ebp - 4], 7
lea esi, [ebp - 0x26c]
jmp 0x409b4a
push ebx
lea esi, [ebp - 0x250]
call fcn.0040b400
mov byte [ebp - 4], 9
mov eax, esi
push eax
mov eax, 0x6ca140
call fcn.0040b460
mov ecx, esi
push ecx
lea eax, [ebp - 0x218]
call fcn.0040b460
mov edx, dword [ebp - 0x294]
push edx
mov eax, dword [ebp - 0x27c]
push eax
mov edx, dword [ebp - 0x290]
mov ecx, esi
call fcn.00408fa0
add esp, 8
mov byte [ebp - 4], 7
call fcn.0044df60
mov byte [ebp - 4], 2
lea esi, [ebp - 0x234]
call fcn.0044df60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28c]
push ecx
call fcn.004239e0
mov eax, dword [ebp - 0x278]
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x409b96
cmp eax, edi
je 0x40995d
cmp eax, 0x103
jne 0x409bac
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 0x4098ea
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.005c397a
mov esp, ebp
pop ebp
ret