Function at 0x4941e0
Capabilities:
Get common file path
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6c10
mov eax, dword fs:[0]
push eax
sub esp, 0x730
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x55514c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x73c], eax
je 0x494426
cmp dword [0x555138], 0
je 0x494426
cmp dword [0x555158], 0
je 0x494426
cmp dword [0x555144], 0
je 0x494426
push 0x3e8
mov dword [ebp - 0x734], 0x3e8
call fcn.004c8d7a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x734]
push eax
push dword [ebp - 0x734]
push edi
push 0xb
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x4942b9
nop dword [eax]
add dword [ebp - 0x734], 0x3e8
push edi
call fcn.004c8d5f
push dword [ebp - 0x734]
call fcn.004c8d7a
add esp, 8
mov edi, eax
lea eax, [ebp - 0x734]
push eax
push dword [ebp - 0x734]
push edi
push 0xb
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jne 0x494280
call fcn.0047b930
test al, al
mov edx, str.ntkrnlpa.exe
mov ecx, str.ntoskrnl.exe
lea eax, [ebp - 0x31c]
cmovne ecx, edx
push ecx
push 0x104
push eax
call fcn.004c913a
xor ebx, ebx
add esp, 0xc
cmp dword [edi], ebx
jbe 0x494389
lea esi, [edi + 0x20]
mov dword [ebp - 0x738], esi
call fcn.0042db70
test eax, eax
je 0x4944f4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x730], eax
push esi
lea ecx, [ebp - 0x730]
mov dword [ebp - 4], 0
call fcn.0048dd30
mov esi, dword [ebp - 0x730]
lea eax, [ebp - 0x31c]
push eax
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004c580a
add esp, 8
mov dword [ebp - 0x730], eax
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x494366
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x730]
test eax, eax
jne 0x494444
mov esi, dword [ebp - 0x738]
inc ebx
add esi, 0x11c
mov dword [ebp - 0x738], esi
cmp ebx, dword [edi]
jb 0x4942f5
mov eax, dword [ebp - 0x738]
push edi
mov dword [ebp - 0x730], eax
call fcn.004c8d5f
add esp, 4
lea eax, [ebp - 0x524]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x72c]
push 0x4ff628
push eax
call fcn.0042fa30
add esp, 0x10
lea eax, [ebp - 0x72c]
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x5503a0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x555138]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0
push 0
call edi
push eax
call esi
test eax, eax
jne 0x494453
push 0x5503a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
imul eax, ebx, 0x11c
mov eax, dword [eax + edi + 0xc]
jmp 0x49438f
mov eax, dword [ebp - 0x730]
mov esi, dword [0x555158]
push 0
cdq
push edx
push eax
push 0
lea eax, [ebp - 0x31c]
push eax
push ebx
call edi
push eax
call esi
or eax, edx
jne 0x494496
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x55514c]
call edi
push eax
call esi
push 0x5503a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x494426
mov esi, dword [0x555144]
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x73c]
mov dword [ebp - 0x114], 0x18
mov dword [ebp - 0x104], 0xed
call edi
push eax
call esi
test eax, eax
jne 0x4944cc
mov dword [ebp - 0x110], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x55514c]
call edi
push eax
call esi
push 0x5503a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x110]
jmp 0x494428
push 0x80004005
call fcn.0042d270
int3