Function at 0x409490
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd637
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
mov ecx, 0x510279
mov dword [ebp - 0x1c], 0
call fcn.004b7c9d
push 0x208
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x409756
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.004048d0
test al, al
jne 0x40954e
lea ecx, [ebp - 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409530
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 2
call fcn.00404690
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x409745
lea eax, [ebp - 0x14]
push eax
call fcn.00408e30
push 0x208
lea eax, [ebp - 0x468]
mov dword [ebp - 4], 3
push 0
push eax
call fcn.004bad00
add esp, 0x10
mov dword [ebp - 0x44], 0x104
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x409760
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10]
call fcn.004048d0
test al, al
jne 0x40961f
lea eax, [ebp - 0x468]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409600
sub eax, edx
lea ecx, [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00406d70
push esi
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 5
cmp dword [eax - 0xc], 0
je 0x40970a
cmp dword [esi - 0xc], 0
je 0x40970a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004042a0
add esp, 8
test al, al
je 0x40970a
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.004099a0
add esp, 4
lea eax, [ebp - 0x15]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], 0x41005c
push ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x3c], 0x700070
push edx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x38], 0x610044
mov dword [ebp - 0x34], 0x610074
mov dword [ebp - 0x30], 0x4c005c
mov dword [ebp - 0x2c], 0x63006f
mov dword [ebp - 0x28], 0x6c0061
mov dword [ebp - 0x24], 0x5c
call fcn.00403f10
mov edi, eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00404310
push dword [edi]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004043c0
add esp, 0x18
push eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00404180
lea ecx, [ebp - 0x48]
call fcn.00403ff0
lea ecx, [ebp - 0x4c]
call fcn.00403ff0
lea ecx, [ebp - 0x58]
call fcn.0040c550
lea ecx, [ebp - 0x20]
call fcn.00403ff0
pop edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409728
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x409745
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
push 0x80004005
call fcn.004048a0
int3