Function at 0x10147527
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov edi, dword [ebp + 0x20]
lea eax, [ebp - 0x1c]
mov dword [eax - 8], esp
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 8], 0x10190f2c
mov dword [eax + 4], 0x1014bc18
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push 0x10183174
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExA
push eax
call ebx
mov dword [ebp - 0x40], eax
push str.RegSetValueExA
push esi
call ebx
mov dword [ebp - 0x34], eax
push str.RegDeleteKeyA
push esi
call ebx
mov dword [ebp - 0x38], eax
push str.RegDeleteValueA
push esi
call ebx
mov dword [ebp - 0x3c], eax
push str.RegOpenKeyExA
push esi
call ebx
mov dword [ebp - 0x30], eax
push 0x10182f85
mov dword [ebp - 0x44], esi
push esi
call ebx
mov dword [ebp - 0x48], eax
xor ebx, ebx
cmp edi, 2
jge 0x1014763c
cmp edi, 1
je 0x1014760e
test edi, edi
jne 0x101476e4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
sub esp, 0x24
lea edx, [ebp - 0x4c]
mov dword [esp + 0x20], edx
lea edx, [ebp - 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x1017f4f0]
movups xmmword [esp + 8], xmm0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [ebp - 0x40]
test eax, eax
mov ebx, 0
jne 0x1014768d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x28]
push ecx
push 0x2001f
push ebx
push dword [ebp + 0xc]
push eax
call dword [ebp - 0x30]
test eax, eax
jne 0x1014768d
mov eax, dword [ebp + 0x14]
cmp eax, 4
jge 0x1014769c
dec eax
cmp eax, 1
ja 0x1014768d
jmp 0x101476c3
cmp edi, 2
je 0x10147672
cmp edi, 3
jne 0x101476e4
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x28]
push edx
push 0x2001f
push ecx
push dword [ebp + 0xc]
push eax
call dword [ebp - 0x30]
test eax, eax
jne 0x1014768d
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call dword [ebp - 0x3c]
jmp 0x101476df
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x28]
push ecx
push 0x2001f
push ebx
push dword [ebp + 0xc]
push eax
call dword [ebp - 0x30]
test eax, eax
je 0x10147691
xor ebx, ebx
jmp 0x101476e4
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call dword [ebp - 0x38]
jmp 0x101476df
cmp eax, 7
jge 0x101476be
cmp eax, 4
jne 0x1014768d
mov eax, 4
lea ecx, [ebp + 0x1c]
push eax
push ecx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call dword [ebp - 0x34]
jmp 0x101476df
cmp eax, 7
jne 0x1014768d
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call dword [ebp - 0x34]
test eax, eax
sete bl
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebp
call fcn.10147728
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x10147700
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, bl
mov ecx, dword [ebp - 0x1c]
mov dword fs:[0], ecx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret