Function at 0x10018065
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.1001e1d0
push 0xffffffffffffffff
push 0x10041d18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1006a1fc]
xor eax, ebp
mov dword [ebp + 0x1104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x1110]
xor esi, esi
mov ebx, dword [ebp + 0x1114]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
push 0x20019
push 0x100543e8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.1003ef73
test eax, eax
jne 0x10018339
push 0x20019
push 0x100543f4
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
call fcn.1003ef73
test eax, eax
jne 0x10018339
push 0x20019
push 0x10054400
push dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
call fcn.1003ef73
test eax, eax
jne 0x1001833e
mov eax, 0x400
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc00]
push esi
push eax
call fcn.10020dd0
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0xc00]
push eax
push esi
jmp 0x1001827b
mov eax, esi
mov ecx, esi
cmp dword [ebp - 0x10], eax
jbe 0x1001825d
cmp byte [ebp + ecx + 0xc00], 0x2e
jne 0x10018185
inc eax
cmp eax, 1
jg 0x10018194
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x10018175
cmp eax, 1
jle 0x1001825d
push 3
lea eax, [ebp + 0xc00]
push 0x1005441c
push eax
call fcn.100233a0
add esp, 0xc
test eax, eax
js 0x1001825d
push 0x20019
lea eax, [ebp + 0xc00]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
call fcn.1003ef73
test eax, eax
jne 0x10018339
push 0x400
lea eax, [ebp + 0x800]
push esi
push eax
call fcn.10020dd0
lea eax, [ebp + 0x800]
push eax
push edi
call fcn.100010e4
add esp, 0x14
lea ecx, [ebp + 0x800]
lea eax, [ebp + 0xc00]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001821f
test dl, dl
je 0x1001821b
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001821f
add eax, 2
add ecx, 2
test dl, dl
jne 0x100181ff
mov eax, esi
jmp 0x10018224
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1001825d
mov eax, 0x104
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x1000]
push esi
push eax
call fcn.10020dd0
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp + 0x1000]
push eax
push 0x10054420
call fcn.1003ef73
test eax, eax
je 0x10018291
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push esi
push esi
push esi
push esi
push ecx
lea ecx, [ebp + 0xc00]
mov dword [ebp - 0x10], 0x400
inc eax
push ecx
mov dword [ebp - 0x14], eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10018168
jmp 0x1001833e
push 0x400
lea eax, [ebp + 0x400]
push esi
push eax
call fcn.10020dd0
add esp, 0xc
lea eax, [ebp + 0x400]
push 0x400
push eax
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.kernel32.dll_GetLongPathNameA]
push 0x400
lea eax, [ebp]
push esi
push eax
call fcn.10020dd0
lea eax, [ebp]
push eax
push edi
call fcn.1003ef73
mov edi, dword [ebp + 0x1118]
lea eax, [ebp + 0x400]
push eax
push edi
push ebx
call fcn.1003ef73
push 0x1005442c
push edi
push ebx
call fcn.1003ef73
mov eax, dword [ebp - 0x28]
add esp, 0x2c
mov al, byte [eax + 4]
and al, 0xf
cmp al, 3
jne 0x1001830e
push 0x10054434
jmp 0x10018313
push 0x1005443c
push edi
push ebx
call fcn.1003ef73
add esp, 0xc
lea eax, [ebp]
push eax
push edi
push ebx
call fcn.1003ef73
push 0x10054444
push edi
push ebx
call fcn.1003ef73
add esp, 0x18
jmp 0x1001833e
mov esi, 0x80004005
lea ecx, [ebp - 0x34]
call fcn.10003fa0
lea ecx, [ebp - 0x20]
call fcn.10003fa0
lea ecx, [ebp - 0x40]
call fcn.10003fa0
lea ecx, [ebp - 0x4c]
call fcn.10003fa0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1104]
xor ecx, ebp
call fcn.1001df6b
add ebp, 0x1108
leave
ret