Function at 0x1003bee0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10084d9d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100c6034]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x218]
xor edi, edi
mov ebx, dword [ebp + 0x214]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1003c0e9
call fcn.10029330
test eax, eax
je 0x1003c10e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.1002b120
test al, al
jne 0x1003bfa3
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003bf87
sub eax, edx
lea ecx, [ebp - 0x14]
sar eax, 1
push eax
lea eax, [ebp]
push eax
call fcn.1002b490
mov dword [ebp - 4], 1
call fcn.1003e820
mov esi, dword [ebp - 0x14]
cmp byte [eax + 0x1c], 0
je 0x1003c096
call fcn.1003e820
mov ebx, eax
call fcn.10029330
test eax, eax
je 0x1003c10e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
push 0xe
push str.Added_subkey:
call fcn.1002ae70
test esi, esi
je 0x1003c019
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c000
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.1002ae70
call fcn.10029330
test eax, eax
je 0x1003c10e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
push 0
push 0x100a3438
call fcn.1002ae70
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
sub esp, 8
call fcn.1003e900
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c074
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c093
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
call fcn.1002bcd0
inc edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003c0c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x104
push eax
lea eax, [ebp]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1003bf50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1005c4e7
lea esp, [ebp + 0x20c]
pop ebp
ret 8
push 0x80004005
call fcn.100269b0
int3