Function at 0x10018f65
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.1001f380
push 0xffffffffffffffff
push 0x10043856
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1006b1fc]
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 eax, dword [ebp + 0x1114]
xor edi, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1110]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov ebx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov esi, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov esi, 0x20019
mov byte [ebp - 4], 3
push esi
push 0x10053d0c
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x34]
call fcn.10006b74
test eax, eax
jne 0x1001923d
push esi
push 0x10053d18
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
call fcn.10006b74
mov ebx, dword [ebp - 0x44]
test eax, eax
jne 0x1001923d
push esi
push 0x10053d24
push ebx
lea ecx, [ebp - 0x50]
call fcn.10006b74
test eax, eax
jne 0x10019242
mov eax, 0x400
mov dword [ebp - 0x1c], edi
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc00]
push edi
push eax
call fcn.10022670
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
add esp, 0xc
push edi
push edi
push edi
push edi
push eax
lea eax, [ebp + 0xc00]
push eax
push edi
jmp 0x1001917f
mov eax, edi
mov ecx, edi
cmp dword [ebp - 0x10], eax
jbe 0x10019161
cmp byte [ebp + eax + 0xc00], 0x2e
jne 0x10019089
inc ecx
cmp ecx, 1
jg 0x10019098
inc eax
cmp eax, dword [ebp - 0x10]
jb 0x10019079
cmp ecx, 1
jle 0x10019161
push 3
lea eax, [ebp + 0xc00]
push 0x10053d40
push eax
call fcn.10024500
add esp, 0xc
test eax, eax
js 0x10019161
push 0x20019
lea eax, [ebp + 0xc00]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10006b74
test eax, eax
jne 0x1001923d
push 0x400
lea eax, [ebp + 0x800]
push edi
push eax
call fcn.10022670
lea eax, [ebp + 0x800]
push eax
push dword [ebp - 0x18]
call fcn.100010e4
add esp, 0x14
lea ecx, [ebp + 0x800]
lea eax, [ebp + 0xc00]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10019123
test dl, dl
je 0x1001911f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10019123
add eax, 2
add ecx, 2
test dl, dl
jne 0x10019103
mov eax, edi
jmp 0x10019128
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10019161
mov eax, 0x104
push eax
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x1000]
push edi
push eax
call fcn.10022670
add esp, 0xc
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1000]
push eax
push 0x10053d44
call fcn.100073a2
test eax, eax
je 0x10019193
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push edi
push edi
push edi
push edi
push ecx
lea ecx, [ebp + 0xc00]
mov dword [ebp - 0x10], 0x400
inc eax
push ecx
mov dword [ebp - 0x1c], eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1001906c
jmp 0x10019242
mov esi, 0x400
lea eax, [ebp + 0x400]
push esi
push edi
push eax
call fcn.10022670
add esp, 0xc
lea eax, [ebp + 0x400]
push esi
push eax
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push esi
lea eax, [ebp]
push edi
push eax
call fcn.10022670
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call fcn.1000120a
mov esi, dword [ebp + 0x1118]
lea eax, [ebp + 0x400]
push eax
push esi
push dword [ebp - 0x14]
call fcn.10024438
push 0x10053d50
push esi
push dword [ebp - 0x14]
call fcn.10024492
mov eax, dword [ebp - 0x18]
mov edx, 0x10053d58
mov ecx, 0x10053d60
mov al, byte [eax + 4]
and al, 0xf
cmp al, 3
cmove ecx, edx
push ecx
push esi
push dword [ebp - 0x14]
call fcn.10024492
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x14]
call fcn.10024492
add esp, 0x44
push 0x10053d68
push esi
push dword [ebp - 0x14]
call fcn.10024492
add esp, 0xc
jmp 0x10019242
mov edi, 0x80004005
cmp dword [ebp - 0x28], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10019253
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1001925d
push eax
call esi
test ebx, ebx
je 0x10019264
push ebx
call esi
cmp dword [ebp - 0x34], 0
je 0x1001926f
push dword [ebp - 0x34]
call esi
mov eax, edi
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.1001f12f
add ebp, 0x1108
leave
ret