Function at 0x10008760
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000c358
push 0x1000b800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x138]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x26c]
rep stosd dword es:[edi], eax
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x160], edi
push str.RegQueryValueExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov ebx, eax
push str.RegOpenKeyExA
push edi
call esi
mov dword [ebp - 0x34], eax
push str.RegEnumValueA
push edi
call esi
push str.RegEnumKeyExA
push edi
call esi
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x270]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x34]
test eax, eax
je 0x10008825
mov dword [ebp - 0x24], 0xffffffff
jmp case.0x1000883d.5
mov eax, dword [ebp + 0x24]
test eax, eax
jne case.0x1000883d.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x1000883d.5
jmp dword [eax*4 + 0x100089d4]
mov dword [ebp - 0x20], 0x104
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x270]
push edx
call ebx
test eax, eax
jne case.0x1000883d.5
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10008983
mov dword [ebp - 0x20], 0x104
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x270]
push eax
call ebx
test eax, eax
jne case.0x1000883d.5
lea esi, [ebp - 0x138]
mov dword [ebp - 0x30], esi
cmp byte [esi], 0
je 0x100088fa
push 0x104
push esi
lea ecx, [ebp - 0x26c]
push ecx
call fcn.100086f0
push 0x104
push 0x1001194c
lea edx, [ebp - 0x26c]
push edx
call fcn.100086f0
push 0
push esi
call fcn.10008730
add esp, 0x20
inc eax
mov esi, eax
jmp 0x100088ba
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10008983
mov dword [ebp - 0x20], 4
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x270]
push eax
call ebx
test eax, eax
jne case.0x1000883d.5
mov ecx, dword [ebp - 0x164]
push ecx
push 0x1001218c
mov edx, dword [ebp + 0x18]
push edx
jmp 0x1000897a
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x270]
push edx
call ebx
test eax, eax
jne case.0x1000883d.5
mov eax, dword [ebp + 0x14]
push eax
push str._08X
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.100089bb
test edi, edi
je 0x100089a1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret