Function at 0x1016d551
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xfffffffffffffffe
push 0x1016d7b0
push 0x1022f80c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1023904c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x238], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x244]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0x248]
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push 0x100ea4f4
lea eax, [ebp + 0x138]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0xfa
lea eax, [ebp + 0x13e]
push eax
lea eax, [edi + 0x64]
push eax
call fcn.1015692e
push 0x1016d770
lea eax, [ebp + 0x138]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [ebp - 0x28]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x138]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1016d650
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], 0x104
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x1016d643
mov eax, dword [ebp - 0x24]
dec eax
cmp eax, 0x104
jae 0x1016d65b
mov byte [ebp + eax + 0x34], bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1016d660
push esi
call fcn.100bb859
jmp 0x1016d74b
call fcn.1015692e
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
push 8
push ebx
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1016d689
mov dword [ebp - 4], 0xfffffffe
push 0x30
pop eax
jmp 0x1016d74b
mov dword [ebp], 0x34
xor eax, eax
cmp dword [edi + 0x48], ebx
sete al
inc eax
mov dword [ebp + 4], eax
push dword [ebp - 0x34]
call fcn.1001b2f9
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x30]
lea esi, [ecx + 0x10]
lea edi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ecx + 0x30]
lea edi, [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ax, word [ecx + 0x58]
mov word [ebp + 0x2c], ax
mov ax, word [ecx + 0x5a]
mov word [ebp + 0x2e], ax
mov eax, dword [ecx + 0x78]
mov dword [ebp + 0x30], eax
cmp dword [ebp + 0x24c], 0
mov eax, 0x1016d780
jne 0x1016d6e7
mov eax, 0x1016d794
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x1016d71f
lea ecx, [ebp]
push ecx
call eax
test eax, eax
jns 0x1016d722
push eax
call fcn.100d7c0e
mov ebx, eax
jmp 0x1016d722
push 0x30
pop ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1016d73a
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
cmp dword [ebp + 8], 0
je 0x1016d749
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.10001e57
add ebp, 0x23c
leave
ret 0xc