Function at 0x4c2f90
Capabilities:
Check os version
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x380
mov esi, esp
mov dword [esi + 0x360], ebp
lea eax, [esi + 0x36c]
mov dword [eax - 8], esp
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 8], 0x5f05f8
mov dword [eax + 4], 0x518920
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea edi, [esi + 0x40]
mov dword [edi], 0
mov eax, 4
lea edx, [esi + 0x20]
mov dword [edx], eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
push ecx
push edi
push edx
push str.hookcheck
push str.Software360
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [edi], 1
jne 0x4c31bd
xor eax, eax
dec eax
lea edi, [esi + 0x158]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push 0x5d833a
call fcn.005477d0
push 0x5d81fa
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4c303d
xor ebx, ebx
jmp 0x4c306f
mov eax, 0x5d81fa
push eax
call fcn.00510eb5
add esp, 4
lea ebx, [esi + 0x158]
mov ecx, ebx
push eax
mov eax, 0x5d81fa
push eax
call fcn.00410600
mov ecx, ebx
push 1
push 0x5d8354
call fcn.00410600
mov bl, 1
push 0x5d823a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c30b0
mov eax, 0x5d823a
push eax
call fcn.00510eb5
add esp, 4
lea ebx, [esi + 0x158]
mov ecx, ebx
push eax
mov eax, 0x5d823a
push eax
call fcn.00410600
mov ecx, ebx
push 1
push 0x5d8354
call fcn.00410600
mov bl, 1
push 0x5d827a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c30f1
mov eax, 0x5d827a
push eax
call fcn.00510eb5
add esp, 4
lea ebx, [esi + 0x158]
mov ecx, ebx
push eax
mov eax, 0x5d827a
push eax
call fcn.00410600
mov ecx, ebx
push 1
push 0x5d8354
call fcn.00410600
mov bl, 1
push 0x5d82ba
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4c3118
push 0x5d82fa
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4c3157
test bl, bl
jne 0x4c3187
jmp 0x4c31a6
mov eax, 0x5d82ba
push eax
call fcn.00510eb5
add esp, 4
lea ebx, [esi + 0x158]
mov ecx, ebx
push eax
mov eax, 0x5d82ba
push eax
call fcn.00410600
mov ecx, ebx
push 1
push 0x5d8354
call fcn.00410600
push 0x5d82fa
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c3187
mov eax, 0x5d82fa
push eax
call fcn.00510eb5
add esp, 4
lea ebx, [esi + 0x158]
mov ecx, ebx
push eax
mov eax, 0x5d82fa
push eax
call fcn.00410600
mov ecx, ebx
push 1
push 0x5d8354
call fcn.00410600
cmp byte [esi + 0x163], 0
jns 0x4c3196
mov edi, dword [esi + 0x158]
xor eax, eax
push eax
push 0x5d8358
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [esi + 0x163], 0
jns 0x4c31bd
push dword [esi + 0x158]
call fcn.0050fc7c
add esp, 4
call fcn.005801c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.00580690
lea edi, [esi + 0x15c]
push 0x110
push 0xff
push edi
call fcn.005191b0
add esp, 0xc
mov dword [edi - 4], 0x114
lea ebx, [esi + 0x158]
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebx + 4]
cmp eax, 6
jne 0x4c3269
mov eax, 6
cmp dword [esi + 0x160], 3
ja 0x4c3269
push 0x5d837c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4c3234
mov eax, dword [esi + 0x15c]
jmp 0x4c3263
mov ebx, eax
push 0x114
push 0xff
lea edi, [esi + 0x40]
push edi
call fcn.005191b0
add esp, 0xc
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x160], ecx
lea ebx, [esi + 0x158]
cmp eax, 0xa
je 0x4c3277
cmp dword [esi + 0x160], 4
jne 0x4c327e
mov byte [0x5f8430], 1
push 0x5d84dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c32b6
push 0x5d84f6
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f8434], eax
test eax, eax
je 0x4c32b6
xor eax, eax
push eax
push eax
push eax
push 0x4c2d80
push 0x5f8434
call fcn.004d3ba0
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4c32f7
test byte [0x5f8430], 1
je 0x4c32f7
push 0x5d84f6
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f8438], eax
test eax, eax
je 0x4c32f7
xor eax, eax
push eax
push eax
push eax
push 0x4c2cb0
push 0x5f8438
call fcn.004d3ba0
xor eax, eax
dec eax
mov dword [esi + 0x38], eax
xor edi, edi
push 0x208
push edi
push ebx
call fcn.005191b0
add esp, 0xc
push edi
push 0x26
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push ebx
call fcn.0053410a
add esp, 8
xor eax, eax
dec eax
mov dword [esi + 0x2c], eax
push ebx
call fcn.00510eb5
add esp, 4
mov edx, ebx
lea ebx, [esi + 0x40]
mov ecx, ebx
push eax
push edx
call fcn.0040e660
mov ecx, ebx
push edi
push edi
call fcn.00501f10
xor ecx, ecx
dec ecx
cmp eax, ecx
jne 0x4c35a6
lea eax, [esi + 0x2c]
push ebx
push eax
call fcn.0056ce00
add esp, 8
cmp byte [esi + 0x4b], 0
jns 0x4c3376
push dword [esi + 0x40]
call fcn.0050fc7c
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
jne 0x4c33a0
mov dword [esi + 0x378], 0
call fcn.00580370
mov eax, dword [esi + 0x36c]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x34], ecx
push ebx
push 0x5dea62
call fcn.0056d220
xor eax, eax
dec eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
movzx eax, byte [esi + 0x4b]
test al, al
jns 0x4c33d5
mov ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
jmp 0x4c33d8
and eax, 0x7f
push eax
push ebx
lea eax, [esi + 0x20]
push eax
call fcn.00420e30
add esp, 0xc
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
lea ebx, [esi + 4]
mov ecx, ebx
push 0x5d836a
call fcn.00547270
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4c340e
mov ebx, dword [esi + 4]
mov eax, dword [esi + 8]
jmp 0x4c3411
and eax, 0x7f
lea edx, [esi + 0x10]
movzx ecx, byte [esi + 0x2b]
test cl, cl
lea edi, [esi + 0x20]
jns 0x4c3427
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
jmp 0x4c342a
and ecx, 0x7f
push edx
push eax
push ebx
push 1
push 0x5d836c
push ecx
push edi
call fcn.0056ba50
add esp, 0x1c
cmp byte [esi + 0xf], 0
jns 0x4c344f
push dword [esi + 4]
call fcn.0050fc7c
add esp, 4
xor ebx, ebx
dec ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
movzx eax, byte [esi + 0x1b]
test al, al
jns 0x4c346b
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
jmp 0x4c3471
and eax, 0x7f
lea edx, [esi + 0x10]
xor ecx, ecx
inc ecx
lea edi, [esi + 4]
push 0
push ecx
push ecx
push 0x5d836a
push eax
push edx
push edi
call fcn.0050aa20
add esp, 0x1c
mov eax, dword [edi]
mov edi, dword [edi + 4]
cmp edi, eax
je 0x4c34b9
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x4c34a3
mov ecx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x4c34a6
and ecx, 0x7f
lea ebx, [esi + 0x38]
push ebx
push ecx
push eax
call fcn.004f9e40
add esp, 0xc
mov edi, dword [esi + 4]
mov ebx, dword [ebx]
test edi, edi
je 0x4c350a
mov eax, dword [esi + 8]
mov ecx, edi
cmp eax, edi
je 0x4c34fe
mov dword [esi + 0x30], ebx
lea ebx, [eax - 0xc]
cmp byte [eax - 1], 0
jns 0x4c34e8
mov eax, dword [eax - 0xc]
mov dword [esi + 0x378], 0xffffffff
push eax
call fcn.0050fc7c
add esp, 4
mov eax, ebx
cmp ebx, edi
jne 0x4c34c9
mov ecx, dword [esi + 4]
mov dword [esi + 0x378], 0xffffffff
mov ebx, dword [esi + 0x30]
mov dword [esi + 8], edi
push ecx
call fcn.0050fc7c
add esp, 4
cmp byte [esi + 0x1b], 0
jns 0x4c351b
push dword [esi + 0x10]
call fcn.0050fc7c
add esp, 4
cmp byte [esi + 0x2b], 0
jns 0x4c352c
push dword [esi + 0x20]
call fcn.0050fc7c
add esp, 4
cmp byte [esi + 0x4b], 0
jns 0x4c353d
push dword [esi + 0x40]
call fcn.0050fc7c
add esp, 4
mov edi, dword [esi + 0x34]
mov ecx, edi
call fcn.0056cc30
push edi
call fcn.0050fc7c
add esp, 4
cmp ebx, 8
jne 0x4c337d
mov edi, str.Psapi.dll
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4c337d
push str.GetModuleBaseNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f843c], eax
test eax, eax
je 0x4c337d
xor eax, eax
push eax
push eax
push eax
push 0x4c2e50
push 0x5f843c
call fcn.004d3ba0
jmp 0x4c337d
lea ecx, [esi + 0x40]
push 0xffffffffffffffff
push eax
call fcn.00561c50
jmp 0x4c3358