Function at 0x4228e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x58c
mov eax, dword [esp + 0x590]
push ebx
push esi
push edi
lea ecx, [esp + 0x198]
push 0x400
push ecx
push 0
mov dword [0x4670c8], eax
mov dword [esp + 0x18], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x54]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ebx, dword [esp + 0x5a0]
test ebx, ebx
jne 0x422932
mov ebx, str.nslog.txt
push 0x5c
push ebx
call fcn.00429180
add esp, 8
test eax, eax
je 0x422965
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x466cc8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4229a7
lea edi, [esp + 0x198]
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x466cc8
mov eax, ecx
mov esi, edi
mov edi, 0x466cc8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00429180
push ebx
push 0x45bedc
push eax
call fcn.004294a1
add esp, 0x14
push 0
push 0x466cc8
call fcn.0042a956
add esp, 8
test eax, eax
jne 0x422ab3
lea ecx, [esp + 0x30]
push ecx
push 0x466cc8
call fcn.0042a62b
add esp, 8
test eax, eax
jne 0x422ab3
cmp dword [esp + 0x44], 0x7d000
jle 0x422ab3
mov edi, 0x466cc8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x98]
push ecx
call fcn.00429180
mov edx, eax
add esp, 8
test edx, edx
je 0x422a4c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x422a68
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x20], al
lea edx, [esp + ecx + 0x94]
lea ecx, [esp + 0x20]
push ecx
push str.old_s
push edx
call fcn.004294a1
lea edx, [esp + 0xa0]
push 0
push edx
call fcn.0042a956
add esp, 0x14
test eax, eax
jne 0x422a9e
lea eax, [esp + 0x94]
push eax
call fcn.0042a549
add esp, 4
lea ecx, [esp + 0x94]
push ecx
push 0x466cc8
call fcn.0042a51b
add esp, 8
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x45bed0
push 0x466cc8
call fcn.00429f4d
push 0x45be90
mov dword [0x4670cc], eax
call fcn.00422ba0
lea eax, [esp + 0x1a4]
push eax
push str.__s_n
call fcn.00422ba0
lea ecx, [esp + 0x68]
push ecx
push str._Run_by__s_n
call fcn.00422ba0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x36]
mov ecx, dword [esp + 0x34]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x30]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x3a]
push ecx
mov ecx, dword [esp + 0x3a]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push str.__2.2i__2.2i__4.4i__i:_2.2i:_2.2i_n
call fcn.00422ba0
push str._n_n
call fcn.00422ba0
push 0x422da0
call fcn.00422d80
add esp, 0x40
push 0x422df0
call fcn.00422d90
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x58c
ret