Function at 0x451980
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5751
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x698
mov eax, dword [0x517074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x670]
xor edi, edi
movq qword [ebp - 0x660], xmm0
mov dword [ebp - 0x688], edi
movups xmmword [ebp - 0x670], xmm0
mov dword [ebp - 0x658], edi
call fcn.00413b10
mov dword [ebp - 4], edi
mov dword [ebp - 0x658], edi
mov dword [ebp - 4], 1
mov al, byte [0x51e680]
push 0xfa0
push 0x51cb40
mov dword [ebp - 0x680], edi
mov dword [ebp - 0x698], edi
mov dword [ebp - 0x69c], edi
mov dword [ebp - 0x650], 0x4f2290
mov dword [ebp - 0x64c], 0x451700
mov dword [ebp - 0x648], str.ws2_32.dll
mov dword [ebp - 0x644], 0x451520
mov byte [ebp - 0x681], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
xor eax, eax
mov word [ebp - 0x20], ax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x228]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4521cd
lea eax, [ebp - 0x228]
push eax
call fcn.004b8d5f
add esp, 4
push 0x4ec724
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x451acb
push 0x4f22c0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x451ab9
push 0x4ec100
mov ecx, edi
call dword [0x4db310]
call edi
push 0x4f22d4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x698], eax
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x451aec
push 0x4f22d4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x69c], eax
cmp word [ebp - 0x228], 0
jne 0x451afa
xor ecx, ecx
jmp 0x451b12
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451b03
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x670]
call fcn.00413f90
push 6
push str..DLL
lea ecx, [ebp - 0x670]
call fcn.004137d0
mov esi, dword [0x51e234]
lea eax, [ebp - 0x670]
push eax
push dword [esi + 4]
push esi
call fcn.00452ad0
mov ecx, dword [0x51e238]
mov edx, eax
mov eax, 0x71c71c6
sub eax, ecx
cmp eax, 1
jae 0x451b6b
push str.list_T__too_long
call fcn.00488067
inc ecx
mov dword [0x51e238], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp word [ebp - 0x228], 0
jne 0x451b88
xor ecx, ecx
jmp 0x451ba0
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451b91
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x670]
call fcn.00413f90
push 0xc
push str.UXTHEME.DLL
lea ecx, [ebp - 0x670]
call fcn.004137d0
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x690]
push eax
call fcn.00452b70
mov eax, dword [ebp - 0x690]
mov byte [eax + 0x2c], 1
cmp word [ebp - 0x228], 0
jne 0x451bf0
xor ecx, ecx
jmp 0x451c0f
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451c00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x670]
call fcn.00413f90
push 0xa
push str.MSCTF.DLL
lea ecx, [ebp - 0x670]
call fcn.004137d0
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x690]
push eax
call fcn.00452b70
mov eax, dword [ebp - 0x690]
xor esi, esi
cmp byte [ebp - 0x681], 0
mov edi, 0x20119
mov byte [eax + 0x2c], 1
mov eax, 0x20019
cmove edi, eax
lea eax, [ebp - 0x680]
push eax
push edi
push esi
push str.SOFTWAREFreedom_ScientificJAWS
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451e78
mov dword [ebp - 0x67c], esi
nop
xor eax, eax
mov dword [ebp - 0x654], 0x100
push eax
push eax
push eax
push eax
mov word [ebp - 0x442], ax
mov word [ebp - 0x640], ax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x640]
push eax
push esi
push dword [ebp - 0x680]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc esi
test eax, eax
jne 0x451e78
lea eax, [ebp - 0x67c]
push eax
push edi
push 0
lea eax, [ebp - 0x640]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451e69
mov word [ebp - 0x230], ax
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x654], 0x208
push eax
push 0
push 0
push str.Target
push dword [ebp - 0x67c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x451e58
lea eax, [ebp - 0x438]
push eax
call fcn.004b8d5f
add esp, 4
cmp word [ebp - 0x438], 0
jne 0x451d57
xor ecx, ecx
jmp 0x451d6f
lea ecx, [ebp - 0x438]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451d60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x670]
call fcn.00413f90
push 9
push str.JHOOK.DLL
lea ecx, [ebp - 0x670]
call fcn.004137d0
lea ecx, [ebp - 0x670]
call fcn.004140f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x451dc8
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x690]
push eax
call fcn.00452b70
mov eax, dword [ebp - 0x690]
mov byte [eax + 0x2c], 1
cmp byte [ebp - 0x681], 0
je 0x451e58
cmp word [ebp - 0x438], 0
jne 0x451de3
xor ecx, ecx
jmp 0x451dff
lea ecx, [ebp - 0x438]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451df0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x670]
call fcn.00413f90
push 0xd
push str.X86JHOOK.DLL
lea ecx, [ebp - 0x670]
call fcn.004137d0
lea ecx, [ebp - 0x670]
call fcn.004140f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x451e58
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x6a8]
push eax
call fcn.00452b70
mov eax, dword [ebp - 0x6a8]
mov byte [eax + 0x2c], 1
mov eax, dword [ebp - 0x67c]
test eax, eax
je 0x451e69
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x67c], 0
jmp 0x451c90
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x451e93
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x680], 0
lea eax, [ebp - 0x680]
push eax
push 0x20019
push 0
push str.SOFTWARENVDA
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451f1a
push 1
push 0x4f23e8
lea ecx, [ebp - 0x670]
call fcn.00413f90
push 0x19
push 0x4f23ec
lea ecx, [ebp - 0x670]
call fcn.004137d0
mov esi, dword [0x51e22c]
lea eax, [ebp - 0x670]
push eax
push dword [esi + 4]
push esi
call fcn.00452ad0
mov ecx, eax
mov edx, 0x71c71c6
mov eax, dword [0x51e230]
sub edx, eax
cmp edx, 1
jae 0x451f0c
push str.list_T__too_long
call fcn.00488067
inc eax
mov dword [0x51e230], eax
mov dword [esi + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x451f35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x680], 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4521cb
push str.RtlImageDirectoryEntryToData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x654], eax
test eax, eax
je 0x4521cb
lea esi, [ebp - 0x64c]
mov dword [ebp - 0x6a0], 2
mov dword [ebp - 0x67c], esi
nop dword [eax + eax]
push dword [esi - 4]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [ebp - 0x694], edi
test edi, edi
jne 0x452037
cmp word [ebp - 0x228], ax
jne 0x451fa6
xor ecx, ecx
jmp 0x451fbf
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451fb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x670]
call fcn.00413f90
push 0x5c
push 1
lea ecx, [ebp - 0x670]
call fcn.00418330
mov edx, dword [esi - 4]
cmp word [edx], 0
jne 0x451fee
xor ecx, ecx
jmp 0x452008
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451ff3
sub ecx, esi
mov esi, dword [ebp - 0x67c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x670]
call fcn.004137d0
lea ecx, [ebp - 0x670]
call fcn.004140f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x694], eax
test edi, edi
je 0x452121
mov ecx, dword [ebp - 0x654]
lea eax, [ebp - 0x678]
push eax
push 1
push 1
push edi
call dword [0x4db310]
call dword [ebp - 0x654]
mov ecx, eax
mov dword [ebp - 0x6a4], ecx
test ecx, ecx
je 0x452121
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
mov esi, ecx
mov dword [ebp - 0x68c], edx
mov eax, edx
je 0x4520ac
nop dword [eax + eax]
mov eax, dword [eax]
add eax, edi
push str.kernel32.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4520a0
add esi, 0x14
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jne 0x452080
mov ecx, dword [ebp - 0x6a4]
mov edx, dword [ebp - 0x68c]
cmp dword [esi + 0xc], 0
jne 0x4520e4
cmp dword [edx], 0
mov esi, ecx
je 0x4520de
nop dword [eax]
mov eax, dword [esi + 0xc]
add eax, edi
push str.api_ms_win_core_libraryloader_l1_1_0.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4520de
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x4520c0
cmp dword [esi + 0xc], 0
je 0x45211b
mov edi, dword [esi + 0x10]
add edi, dword [ebp - 0x694]
mov eax, dword [edi]
test eax, eax
je 0x45211b
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edx, dword [ebp - 0x698]
mov esi, dword [ebp - 0x69c]
cmp eax, ecx
je 0x452142
cmp eax, edx
je 0x452142
cmp eax, esi
je 0x452142
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x452105
mov esi, dword [ebp - 0x67c]
mov edi, dword [ebp - 0x688]
add esi, 8
sub dword [ebp - 0x6a0], 1
mov dword [ebp - 0x67c], esi
jne 0x451f80
jmp 0x4521cd
mov esi, dword [ebp - 0x67c]
push 0
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x45211b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e6
jne 0x45211b
lea eax, [ebp - 0x674]
push eax
push 8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4521b5
push 0
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, eax
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x674]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
jne 0x45211b
mov esi, dword [ebp - 0x67c]
mov edi, 0x3e6
mov dword [ebp - 0x688], edi
jmp 0x452127
xor edi, edi
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x658]
test ecx, ecx
je 0x4521e7
push ecx
call fcn.0048bd21
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x670]
call fcn.00414250
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048bc9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret