Function at 0x10001790
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10026eb0
push 0x1000e3b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x10029080]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c0], eax
mov ebx, ecx
mov dword [ebp - 0x2b0], 1
mov dword [ebp - 0x2cc], SysReAllocString
mov dword [ebp - 0x2a8], 0
push 0x80
push 0
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.100114c0
push 0x104
push 0
lea edx, [ebp - 0x120]
push edx
call fcn.100114c0
push 0x104
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.100114c0
add esp, 0x24
push 0x10025294
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x2d0], edi
push str.RegQueryValueExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x2b8], eax
push str.RegOpenKeyExA
push edi
call esi
mov dword [ebp - 0x2bc], eax
push str.RegEnumValueA
push edi
call esi
push str.RegEnumKeyExA
push edi
call esi
push str.RegCloseKey
push edi
call esi
mov esi, eax
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2b4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x2c0]
push edx
push SysReAllocString
call dword [ebp - 0x2bc]
test eax, eax
je 0x100018ba
mov dword [ebp - 0x2a8], 0xffffffff
jmp case.0x100018ca.5
mov eax, dword [ebp - 0x2b0]
dec eax
cmp eax, 6
ja case.0x100018ca.5
jmp dword [eax*4 + 0x10001a8c]
mov dword [ebp - 0x2ac], 0x104
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x2b0]
push edx
push 0
push ebx
mov eax, dword [ebp - 0x2b4]
push eax
call dword [ebp - 0x2b8]
test eax, eax
jne case.0x100018ca.5
lea ecx, [ebp - 0x120]
push ecx
push 0x1002b920
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10001a29
mov dword [ebp - 0x2ac], 0x104
lea edx, [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x2b0]
push ecx
push 0
push ebx
mov edx, dword [ebp - 0x2b4]
push edx
call dword [ebp - 0x2b8]
test eax, eax
jne case.0x100018ca.5
lea ebx, [ebp - 0x120]
lea esp, [esp]
lea eax, [ebp - 0x224]
cmp byte [ebx], 0
je 0x1000198e
push ebx
call fcn.10001750
push 0x100252f4
call fcn.10001750
add esp, 8
push 0
push ebx
call fcn.1000c930
add esp, 8
lea ebx, [eax + 1]
jmp 0x10001960
push eax
mov eax, 0x1002b920
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10001a29
mov dword [ebp - 0x2ac], 4
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x2c8]
push edx
lea eax, [ebp - 0x2b0]
push eax
push 0
push ebx
mov ecx, dword [ebp - 0x2b4]
push ecx
call dword [ebp - 0x2b8]
test eax, eax
jne case.0x100018ca.5
mov edx, dword [ebp - 0x2c8]
push edx
push 0x100252f8
jmp 0x10001a1b
mov dword [ebp - 0x2ac], 0x400
lea eax, [ebp - 0x2ac]
push eax
push 0
lea ecx, [ebp - 0x2b0]
push ecx
push 0
push ebx
mov edx, dword [ebp - 0x2b4]
push edx
call dword [ebp - 0x2b8]
test eax, eax
jne case.0x100018ca.5
mov eax, dword [ebp - 0x2b0]
push eax
push str._08X
push 0x1002b920
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x2a8], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.10001a78
test edi, edi
je 0x10001a4a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000bc1d
mov esp, ebp
pop ebp
ret