Function at 0x414710
Capabilities:
Link many functions at runtime
Rebuild import table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push esi
push edi
test ebx, ebx
je 0x414ae8
push 0x170
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
mov dword [ebp + 0xc], edi
test edi, edi
jne 0x414772
push 0x7c
lea eax, [ebp - 0xc8]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x1f
lea esi, [ebp - 0xc8]
lea edi, [ebp - 0x148]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x148]
mov dword [ebp + 0xc], edi
lea ecx, [ebx + 0x80]
lea eax, [edi + 0x10]
test ecx, ecx
je 0x414ae8
test eax, eax
je 0x4147c0
cmp dword [eax], 0
jne 0x41479e
cmp dword [eax + 0xc], 0
jne 0x4147a8
cmp dword [eax + 4], 0
jne 0x41479e
cmp dword [eax + 8], 0
je 0x4147c0
cmp dword [eax + 0xc], 0
je 0x414ae8
cmp dword [eax + 4], 0
jne 0x4147b8
cmp dword [eax + 8], 0
je 0x414ae8
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
jmp 0x4147d5
mov dword [ecx + 4], 0x4074a0
mov dword [ecx + 8], 0x4074c0
mov dword [ecx + 0xc], 0x4074e0
mov edx, dword [edi]
test edx, edx
jne 0x4147ec
lea esi, [ebx + 0x3c]
mov edx, esi
call fcn.00407500
xor edx, edx
test eax, eax
cmove edx, esi
mov dword [ebx + 0x38], edx
mov eax, dword [edi + 4]
mov dword [ebx + 0x74], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x78], eax
mov eax, dword [edi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
mov dword [ebx + 0x7c], eax
call edi
mov dword [ebx + 0x150], eax
test eax, eax
je 0x414adc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetForegroundWindow
push eax
call esi
push 0x4f05d0
push dword [ebx + 0x150]
mov dword [ebx + 0x154], eax
call esi
push str.advapi32.dll
mov dword [ebx + 0x158], eax
call edi
mov dword [ebx + 0x15c], eax
test eax, eax
je 0x414adc
push str.RegOpenKeyExA
push eax
call esi
push 0x4f0604
push dword [ebx + 0x15c]
mov dword [ebx + 0x160], eax
call esi
push str.RegQueryValueExA
push dword [ebx + 0x15c]
mov dword [ebx + 0x164], eax
call esi
push 0x4f0624
mov dword [ebx + 0x168], eax
call edi
mov dword [ebx + 0x130], eax
test eax, eax
je 0x414adc
push 0x4f0630
push eax
call esi
push 0x4f0640
push dword [ebx + 0x130]
mov dword [ebx + 0x134], eax
call esi
push str.CoUninitialize
push dword [ebx + 0x130]
mov dword [ebx + 0x138], eax
call esi
push 0x4f0660
push dword [ebx + 0x130]
mov dword [ebx + 0x13c], eax
call esi
push str.CoTaskMemFree
push dword [ebx + 0x130]
mov dword [ebx + 0x140], eax
call esi
push str.PropVariantClear
push dword [ebx + 0x130]
mov dword [ebx + 0x144], eax
call esi
push str.StringFromGUID2
push dword [ebx + 0x130]
mov dword [ebx + 0x148], eax
call esi
mov dword [ebx + 0x14c], eax
mov eax, dword [ebx + 0x138]
push 0
test eax, eax
je 0x414933
push 0
call eax
jmp 0x41493b
mov eax, dword [ebx + 0x134]
call eax
movaps xmm1, xmmword [0x4f4b90]
mov dword [ebx + 0x16c], eax
xor eax, eax
nop word [eax + eax]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [ebp + eax*4 - 0x44], xmm0
add eax, 4
cmp eax, 0xb
jbe 0x414950
cmp eax, 0xe
ja 0x41497a
nop
mov dword [ebp + eax*4 - 0x44], eax
inc eax
cmp eax, 0xe
jbe 0x414970
mov ecx, dword [ebp - 4]
mov eax, 0xf
test ecx, ecx
mov edx, 1
cmovne eax, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
cmovne eax, ecx
xor esi, esi
mov dword [ebp - 8], eax
nop word [eax + eax]
mov edi, dword [eax + esi*4]
push 0x34
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
cmp edi, 0xe
ja case.0x4149be.3
movzx eax, byte [edi + 0x414b10]
jmp dword [eax*4 + 0x414af4]
mov dword [ebx], 0x40dfd0
mov ecx, 0x40dfd0
jmp 0x414a1f
mov dword [ebx], 0x4107c0
mov ecx, 0x4107c0
jmp 0x414a1f
mov dword [ebx], 0x4121a0
mov ecx, 0x4121a0
jmp 0x414a1f
mov dword [ebx], 0x413930
mov ecx, 0x413930
jmp 0x414a1f
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [eax + 0x48]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [eax + 0x58]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x68]
movups xmmword [ebx + 0x20], xmm0
mov eax, dword [eax + 0x78]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x414a2d
push ebx
push dword [ebp + 0xc]
push ebx
call ecx
add esp, 0xc
test eax, eax
je 0x414a4c
inc esi
cmp esi, dword [ebp - 4]
jae 0x414ac0
mov eax, dword [ebp - 8]
jmp 0x4149a0
mov dword [ebx], 0x40a950
mov ecx, 0x40a950
jmp 0x414a1f
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
lea esi, [ebx + 0x90]
test esi, esi
je 0x414a76
push 0
push 1
push 0
push 0
call eax
mov dword [esi], eax
test eax, eax
jne 0x414a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
lea esi, [ebx + 0x94]
test esi, esi
jne 0x414a8d
lea eax, [esi - 2]
mov dword [ebx + 0x34], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 1
push 0
push 0
call eax
mov dword [esi], eax
test eax, eax
jne 0x414ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00407690
mov dword [ebx + 0x34], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebx + 0x34], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x170
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0xffffff35
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffe70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret