Function at 0x10008e70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010540
push 0x100093f6
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 0x10008f35
mov dword [ebp - 0x24], 0xffffffff
jmp case.0x10008f4d.5
mov eax, dword [ebp + 0x24]
test eax, eax
jne case.0x10008f4d.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x10008f4d.5
jmp dword [eax*4 + 0x100090e8]
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.0x10008f4d.5
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10009099
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.0x10008f4d.5
lea esi, [ebp - 0x138]
mov dword [ebp - 0x30], esi
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
cmp byte [esi], 0
je 0x10009010
push 0x104
push esi
lea ecx, [ebp - 0x26c]
push ecx
call fcn.10008e30
push 0x104
push 0x10015b00
lea edx, [ebp - 0x26c]
push edx
call fcn.10008e30
push 0
push esi
call ebx
add esp, 0x20
inc eax
mov esi, eax
mov dword [ebp - 0x30], esi
jmp 0x10008fd3
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10009099
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.0x10008f4d.5
mov ecx, dword [ebp - 0x164]
push ecx
push 0x10016f54
mov edx, dword [ebp + 0x18]
push edx
jmp 0x10009090
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.0x10008f4d.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.100090d1
test edi, edi
je 0x100090b7
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