Function at 0x100152e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001dc10
push 0x100175e0
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x10021008]
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 dword [ebp - 0x490], edx
mov eax, ecx
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x4a0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x478], 1
xor edi, edi
mov dword [ebp - 0x474], edi
push 0x40
push edi
lea eax, [ebp - 0x5c]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
push edi
lea eax, [ebp - 0x264]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
push edi
lea eax, [ebp - 0x46c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
push 0x1001be68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x480], eax
push str.RegQueryValueExW
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x484], eax
push str.RegOpenKeyExW
push dword [ebp - 0x480]
call esi
mov dword [ebp - 0x494], eax
push str.RegEnumValueW
push dword [ebp - 0x480]
call esi
push str.RegEnumKeyExW
push dword [ebp - 0x480]
call esi
push str.RegCloseKey
push dword [ebp - 0x480]
call esi
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x47c]
push eax
push 0x20019
push edi
push dword [ebp - 0x490]
mov esi, dword [ebp - 0x48c]
push esi
call dword [ebp - 0x494]
test eax, eax
je 0x1001540f
or edi, 0xffffffff
jmp 0x1001559e
mov eax, dword [ebp - 0x478]
dec eax
cmp eax, 6
ja case.0x1001541f.5
jmp dword [eax*4 + 0x10015600]
mov dword [ebp - 0x470], 0x208
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x478]
push eax
push 0
push ebx
push dword [ebp - 0x47c]
call dword [ebp - 0x484]
test eax, eax
jne case.0x1001541f.5
lea ecx, [ebp - 0x264]
call fcn.10015270
push eax
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, 1
jmp 0x1001559e
mov dword [ebp - 0x470], 0x208
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x478]
push eax
push 0
push ebx
push dword [ebp - 0x47c]
call dword [ebp - 0x484]
test eax, eax
jne case.0x1001541f.5
lea esi, [ebp - 0x264]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x46c]
cmp word [esi], 0
je 0x100154f6
push esi
push eax
call edi
push 0x1001adb4
lea eax, [ebp - 0x46c]
push eax
call edi
mov dword [ebp - 0x498], esi
cmp word [esi], 0
je 0x100154ef
add esi, 2
jmp 0x100154de
mov esi, 2
jmp 0x100154c0
push eax
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, 1
mov dword [ebp - 0x474], edi
mov esi, dword [ebp - 0x48c]
jmp case.0x1001541f.5
mov dword [ebp - 0x470], 4
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x478]
push eax
push 0
push ebx
push dword [ebp - 0x47c]
call dword [ebp - 0x484]
test eax, eax
jne case.0x1001541f.5
push dword [ebp - 0x49c]
push 0x1001b260
push dword [ebp - 0x488]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edi, 1
jmp 0x1001559e
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x470]
push eax
push 0
lea eax, [ebp - 0x478]
push eax
push 0
push ebx
push dword [ebp - 0x47c]
call dword [ebp - 0x484]
mov ecx, 1
test eax, eax
cmove edi, ecx
mov dword [ebp - 0x474], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.100155eb
mov eax, dword [ebp - 0x480]
test eax, eax
je 0x100155c1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
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.10016f21
mov esp, ebp
pop ebp
ret