Function at 0x4c0ca0
Capabilities:
Check os version
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b79b
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x5ac020]
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, edx
mov ebx, ecx
xor eax, eax
xor edi, edi
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.005032d0
add esp, 0xc
cmp ebx, 0x41
jne 0x4c0d88
push 0x114
lea eax, [ebp - 0x350]
push edi
push eax
call fcn.005032d0
add esp, 0xc
mov dword [ebp - 0x350], 0x114
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x34c], 6
jb 0x4c0e8f
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4c0e8f
push str.SHGetKnowFolderPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c0d7c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push edi
push 0x552758
call eax
test eax, eax
jne 0x4c0d7c
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00401fc0
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4c0e8f
cmp ebx, 0x3d
ja 0x4c0da1
push 0
push ebx
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x4c0e16
cmp ebx, 0x3e
jne 0x4c0dfd
xor eax, eax
push eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x220]
push 0x24
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c0e8f
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00501d6b
add esp, 0x24
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00401fc0
lea edi, [ebx - 0x3d]
jmp 0x4c0e8f
cmp ebx, 0x3f
jne 0x4c0e2f
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4c0e8f
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.00401fc0
mov edi, 1
jmp 0x4c0e8f
cmp ebx, 0x40
jne 0x4c0e8f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c0e8f
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ffbb1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c0e8f
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4c0e86
push ebx
mov ecx, esi
call fcn.00401fc0
mov edi, 1
push ebx
call fcn.00500843
add esp, 4
cmp dword [esi + 0x10], 0
je 0x4c0f8f
push 0x56c344
lea ecx, [ebp - 0x238]
call fcn.00421630
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4c0eba
mov ecx, dword [esi]
jmp 0x4c0ebc
mov ecx, esi
mov eax, dword [esi + 0x10]
movzx ebx, word [ecx + eax*2 - 2]
mov ecx, dword [ebp - 0x224]
cmp ecx, 1
jae 0x4c0ee8
push dword [ebp - 0x228]
lea ecx, [ebp - 0x238]
push 1
call fcn.00401d30
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
mov word [eax], bx
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x228], 1
cmovae eax, dword [ebp - 0x238]
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
push eax
push 0x571f54
call fcn.00500c00
add esp, 8
test eax, eax
jne 0x4c0f54
mov eax, dword [esi + 0x10]
mov ecx, esi
dec eax
push eax
push 0
push esi
call fcn.00401c40
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], 8
jb 0x4c0f72
push dword [ebp - 0x238]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, edi
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.004ffcef
mov esp, ebp
pop ebp
ret