Function at 0x449200
Capabilities:
Check os version
Enumerate process modules
Get common file path
Get process image filename
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fdb2
mov eax, dword fs:[0]
push eax
sub esp, 0xd50
mov eax, dword [0x5b3680]
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
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xd34]
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xd3c], esi
mov dword [ebp - 0xd44], edi
mov dword [ebp - 0xd34], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0xd30]
xor dl, dl
mov ecx, dword [ebp - 0xd2c]
mov dword [ebp - 0xd54], edx
cmp eax, 5
jae 0x449277
mov ebx, 2
jmp 0x449282
cmp ecx, 1
sbb ebx, ebx
and ebx, 4
add ebx, 4
mov dword [ebp - 0xd50], 1
cmp eax, 5
jne 0x4492a4
cmp ecx, 1
movzx edx, dl
cmovb edx, dword [ebp - 0xd50]
mov dword [ebp - 0xd54], edx
test edi, edi
jne 0x449332
push edi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xd48], eax
test eax, eax
jne 0x4492ca
xor eax, eax
jmp 0x4499c1
mov ebx, esi
push 0
push 0x581a44
lea ecx, [ebx + 0x10]
call fcn.00402600
push 0
push 0x581a44
lea ecx, [ebx + 0x14]
call fcn.00402600
push 0
push 0x58b3fc
lea ecx, [ebx + 0x14]
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
call fcn.00402600
push 4
push str.Idle
lea ecx, [ebx + 0x10]
call fcn.00402600
mov eax, dword [ebx + 0x10]
push dword [ebp - 0xd48]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4498d0
cmp edi, ebx
jne 0x4493b2
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xd44], eax
test eax, eax
je 0x4492c3
push 0x581a44
lea ecx, [esi + 0x10]
call fcn.00402700
push 0x581a44
lea ecx, [esi + 0x14]
call fcn.00402700
mov eax, esi
lea ecx, [esi + 0x14]
push 0x58b3fc
mov dword [eax + 0xc], ebx
mov ebx, eax
mov dword [ebx + 8], 0
call fcn.00402700
push str.System
lea ecx, [esi + 0x10]
call fcn.00402700
mov eax, dword [esi + 0x10]
push dword [ebp - 0xd44]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4498d0
push dword [ebp - 0xd44]
xor edi, edi
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4492c3
mov eax, dword [0x5ba188]
cmp dword [eax + 0xd8], edi
je 0x44966f
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x449767
lea ecx, [ebp - 0xd4c]
call fcn.00402b10
mov dword [ebp - 4], edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xd38]
call fcn.004031c0
mov byte [ebp - 4], 1
xor esi, esi
mov eax, dword [ebp - 0xd38]
test esi, esi
js 0x449451
cmp esi, dword [eax - 0xc]
jge 0x449451
lea eax, [eax + esi*2]
push 0x5c
push eax
call fcn.0052c7e9
mov esi, eax
add esp, 8
test esi, esi
je 0x449462
mov eax, dword [ebp - 0xd38]
sub esi, eax
sar esi, 1
jmp 0x449454
or esi, 0xffffffff
inc edi
cmp esi, 0xffffffff
je 0x449465
inc esi
cmp edi, 3
jl 0x449428
jmp 0x449465
or esi, 0xffffffff
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00531bd0
add esp, 0xc
lea eax, [esi - 1]
lea ecx, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd48]
push eax
call fcn.00414320
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xd48]
cmp dword [eax - 4], 1
jle 0x4494bd
push dword [eax - 0xc]
lea ecx, [ebp - 0xd48]
call fcn.004024c0
mov eax, dword [ebp - 0xd48]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.FLTLIB.DLL_FilterGetDosName]
test eax, eax
jne 0x44955b
mov eax, dword [ebp - 0xd38]
lea ecx, [ebp - 0xd38]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
lea eax, [ebp - 0xd40]
push eax
call fcn.00415dc0
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xd4c]
push 0x58ae70
push eax
call fcn.00415d20
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd40]
call fcn.00402750
mov eax, dword [ebp - 0xd4c]
cmp dword [eax - 4], 1
jle 0x449546
push dword [eax - 0xc]
lea ecx, [ebp - 0xd4c]
call fcn.004024c0
mov eax, dword [ebp - 0xd4c]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052c92e
add esp, 0xc
push 0x581a44
lea ecx, [ebp - 0xd40]
call fcn.004031c0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xd40]
mov esi, dword [ebp - 0xd50]
mov edx, esi
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4495a3
push 0x104
lea ecx, [ebp - 0xd40]
call fcn.00402590
mov eax, dword [ebp - 0xd40]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4495c2
push 0xffffffffffffffff
lea ecx, [ebp - 0xd40]
call fcn.004023c0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xd40]
call fcn.00401e70
test eax, eax
jne 0x449625
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd40]
call fcn.00402750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd48]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd38]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4c]
call fcn.00402750
mov eax, esi
jmp 0x4499c1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd40]
call fcn.00402750
lea edi, [ebp - 0x218]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd48]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd38]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4c]
call fcn.00402750
jmp 0x449767
lea eax, [ebp - 0xd5c]
push eax
push 4
lea eax, [ebp - 0xd58]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x449767
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xd58]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x449767
push 0x581a44
lea ecx, [ebp - 0xd38]
call fcn.004031c0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd38]
mov esi, dword [ebp - 0xd50]
mov edx, esi
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x4496fa
push 0x104
lea ecx, [ebp - 0xd38]
call fcn.00402590
mov eax, dword [ebp - 0xd38]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x449719
push 0xffffffffffffffff
lea ecx, [ebp - 0xd38]
call fcn.004023c0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xd38]
call fcn.00401e70
test eax, eax
jne 0x44974f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd38]
call fcn.00402750
mov eax, esi
jmp 0x4499c1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd38]
call fcn.00402750
lea edi, [ebp - 0x218]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x449791
xor ecx, ecx
movzx eax, word [ecx + str.System]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x449774
lea edi, [ebp - 0x218]
mov ebx, dword [ebp - 0xd3c]
push 0x581a44
lea ecx, [ebx + 0x10]
call fcn.00402700
lea ecx, [ebx + 0x14]
push 0x581a44
call fcn.00402700
mov eax, dword [ebp - 0xd44]
lea ecx, [ebx + 0x14]
push 0x58b3fc
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], 0
call fcn.00402700
push edi
lea ecx, [ebx + 0x10]
call fcn.00402700
mov eax, dword [ebx + 0x10]
cmp dword [eax - 0xc], 1
jge 0x4497ea
push 0x80070057
call fcn.004027b0
cmp word [eax + 2], 0x3a
je 0x449868
cmp dword [eax - 0xc], 0
jl 0x449834
push str.SystemRoot
push eax
call fcn.0052cc91
add esp, 8
test eax, eax
je 0x449834
sub eax, dword [ebx + 0x10]
sar eax, 1
jne 0x449834
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x420]
push eax
push str.SystemRoot
jmp 0x449860
mov eax, dword [ebx + 0x10]
cmp dword [eax - 0xc], 0
jl 0x449868
push str.___
push eax
call fcn.0052cc91
add esp, 8
test eax, eax
je 0x449868
sub eax, dword [ebx + 0x10]
sar eax, 1
jne 0x449868
push 0x581a44
push str.___
lea ecx, [ebx + 0x10]
call fcn.004140e0
mov eax, dword [ebx + 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x10]
cmp dword [eax - 4], 1
jle 0x449887
push dword [eax - 0xc]
lea ecx, [ebx + 0x10]
call fcn.004024c0
push ecx
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0xc20]
call fcn.00402c60
add esp, 4
test eax, eax
je 0x4498ca
lea eax, [ebp - 0xc20]
push eax
lea ecx, [ebx + 0x14]
call fcn.00402700
lea ecx, [ebp - 0xc20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4498b5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebx + 8], eax
mov edi, dword [ebp - 0xd44]
push 0
push 0x581a44
lea ecx, [ebx + 0x18]
call fcn.00402600
cmp byte [ebp - 0xd54], 0
mov dword [ebx], 0
jne 0x4499a2
lea eax, [ebp - 0xd54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x449993
lea eax, [ebp - 0xd58]
mov dword [ebp - 0xd3c], 0
push eax
lea eax, [ebp - 0xd3c]
mov dword [ebp - 0xd58], 0
push eax
push 5
push dword [ebp - 0xd54]
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x449978
mov edx, dword [ebp - 0xd3c]
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x449950
sub ecx, edi
sar ecx, 1
lea ecx, [ebx + 0x18]
je 0x44997b
push edx
call fcn.00443f90
push dword [ebp - 0xd3c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x4499b1
lea ecx, [ebx + 0x18]
push 0x58b440
call fcn.00443f90
push dword [ebp - 0xd3c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x4499b1
push 0x58b440
lea ecx, [ebx + 0x18]
call fcn.00443f90
jmp 0x4499b1
push 6
push 0x58b440
lea ecx, [ebx + 0x18]
call fcn.00443ec0
mov eax, dword [ebx + 0x18]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebx], eax
mov eax, dword [ebp - 0xd50]
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.005295e2
mov esp, ebp
pop ebp
ret 8