Function at 0x4091f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a388
push 0x409786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x224]
rep stosd dword es:[edi], eax
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x228], 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 - 0x22c], 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 - 0x230], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x22c]
test eax, eax
je 0x4092bb
mov dword [ebp - 0x1c], 0xffffffff
jmp case.0x4092d3.5
mov eax, dword [ebp + 0x24]
test eax, eax
jne case.0x4092d3.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x4092d3.5
jmp dword [eax*4 + 0x409490]
mov dword [ebp - 0x238], 0x104
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call ebx
test eax, eax
jne case.0x4092d3.5
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x409440
mov dword [ebp - 0x238], 0x104
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x234]
push eax
call ebx
test eax, eax
jne case.0x4092d3.5
lea esi, [ebp - 0x120]
mov dword [ebp - 0x23c], esi
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
cmp byte [esi], 0
je 0x4093a8
push 0x104
push esi
lea ecx, [ebp - 0x224]
push ecx
call fcn.004091b0
push 0x104
push 0x40caac
lea edx, [ebp - 0x224]
push edx
call fcn.004091b0
push 0
push esi
call ebx
add esp, 0x20
inc eax
mov esi, eax
mov dword [ebp - 0x23c], esi
jmp 0x409368
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x409440
mov dword [ebp - 0x238], 4
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x234]
push eax
call ebx
test eax, eax
jne case.0x4092d3.5
mov ecx, dword [ebp - 0x240]
push ecx
push 0x40df30
mov edx, dword [ebp + 0x18]
push edx
jmp 0x409437
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x238]
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 - 0x234]
push edx
call ebx
test eax, eax
jne case.0x4092d3.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 - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00409478
test edi, edi
je 0x40945e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret