Function at 0x484070
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x568122
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x11bd8
call fcn.00543120
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x11bd4], eax
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x11be8]
mov dword fs:[0], eax
mov ecx, dword [0x5ba234]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x11bf0], 0
cmp byte [ebp + 8], 0
je 0x4840ed
mov edi, 1
jmp 0x48482f
lea eax, [esp + 0x1c]
sub ecx, 0xffffff80
push eax
call fcn.00483780
test eax, eax
jne 0x484105
xor edi, edi
jmp 0x48482f
push 0x58b3fc
lea ecx, [esp + 0x2c]
call fcn.004031c0
mov byte [esp + 0x11bf0], 1
lea ecx, [esp + 0x40]
push 0x581a44
call fcn.004031c0
mov byte [esp + 0x11bf0], 2
lea ecx, [esp + 0x10]
push 0x58b3fc
call fcn.004031c0
mov byte [esp + 0x11bf0], 3
mov edx, 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], 0x100
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x100
or ecx, edx
jge 0x48417a
push 0x100
lea ecx, [esp + 0x14]
call fcn.00402590
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4841be
mov eax, dword [esp + 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x484430
mov ecx, dword [esp + 0x10]
cmp edx, dword [ecx - 8]
jg 0x484430
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov word [eax + edx*2], cx
xor esi, esi
lea ecx, [esp + 0x1c4]
push 0x400
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c8], esi
call fcn.0041b760
mov byte [esp + 0x11bf0], 4
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
je 0x4845a1
movsd xmm0, qword [0x593278]
add edi, 4
movsd qword [esp + 0x44], xmm0
push 0xffc
lea eax, [esp + 0xbe4]
mov dword [esp + 0xbe0], 0
push 0
push eax
call fcn.00531bd0
add esp, 0xc
mov dword [esp + 0x3dc], 0
lea eax, [esp + 0x3e0]
push 0x7fc
push 0
push eax
call fcn.00531bd0
add esp, 0xc
mov dword [esp + 0x314], 0
lea eax, [esp + 0x318]
push 0xc4
push 0
push eax
call fcn.00531bd0
add esp, 0xc
mov dword [esp + 0x24c], 0
lea eax, [esp + 0x250]
push 0xc4
push 0
push eax
call fcn.00531bd0
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax - 0xc], 0x200
jle 0x4842d7
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x200
or eax, ecx
jge 0x4842b6
push 0x200
mov ecx, edi
call fcn.00402590
mov eax, dword [edi]
cmp dword [eax - 8], 0x200
jl 0x484430
mov dword [eax - 0xc], 0x200
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + 0x400], cx
push 1
push dword [edi]
lea eax, [esp + 0x3e4]
push dword [esp + 0x18]
push 0x4e3
push dword [edi - 4]
push 0x58dea8
push 0x400
push eax
call fcn.0052df5e
movsd xmm1, qword [edi + 4]
lea ecx, [esp + 0x194]
add esp, 0x20
call fcn.00416200
lea eax, [esp + 0x184]
push eax
lea eax, [esp + 0x178]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movdqa xmm1, xmmword [esp + 0x184]
movdqa xmm0, xmm1
movdqa xmmword [esp + 0x174], xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
movd ecx, xmm0
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
movd ecx, xmm1
psrldq xmm1, 4
movzx eax, cx
push eax
movd eax, xmm1
shr ecx, 0x10
push ecx
shr eax, 0x10
push eax
push str._0.2u._0.2u._0.2u__0.2u:_0.2u:_0.2u:_d_
lea eax, [esp + 0x334]
push 0x64
push eax
call fcn.0052df5e
movsd xmm0, qword [edi + 4]
lea ecx, [esp + 0x1dc]
mov esi, dword [edi + 0xc]
add esp, 0x28
movapd xmm1, xmm0
movsd qword [esp + 0x2c], xmm0
call fcn.00416200
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, esi
mov ecx, 0x2710
mov esi, dword [esp + 0x38]
mul ecx
add dword [esp + 0x34], eax
lea eax, [esp + 0x194]
push eax
lea eax, [esp + 0x38]
adc esi, edx
push eax
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x48443a
movzx eax, word [esp + 0x1a2]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [esp + 0x44]
addsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 0x2c], xmm0
jmp 0x484440
push 0x80070057
call fcn.004027b0
movsd xmm0, qword [esp + 0x2c]
movapd xmm1, xmm0
lea ecx, [esp + 0x1a4]
call fcn.00416200
movdqa xmm0, xmmword [esp + 0x1a4]
lea eax, [esp + 0x184]
push eax
lea eax, [esp + 0x178]
movdqa xmmword [esp + 0x178], xmm0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movdqa xmm1, xmmword [esp + 0x184]
movdqa xmm0, xmm1
movdqa xmmword [esp + 0x174], xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
movd ecx, xmm0
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
movd ecx, xmm1
psrldq xmm1, 4
movzx eax, cx
push eax
movd eax, xmm1
shr ecx, 0x10
push ecx
shr eax, 0x10
push eax
push str._0.2u._0.2u._0.2u__0.2u:_0.2u:_0.2u:_d_r_n
lea eax, [esp + 0x26c]
push 0x64
push eax
call fcn.0052df5e
lea eax, [esp + 0x274]
push eax
lea eax, [esp + 0x340]
push eax
lea eax, [esp + 0x40c]
push eax
push str._s_s_s
lea eax, [esp + 0xc14]
push 0x800
push eax
call fcn.0052df5e
add esp, 0x40
lea eax, [esp + 0xbdc]
push 0x800
push eax
call fcn.00529878
add esp, 8
or ecx, 0xffffffff
xor edx, edx
lea esi, [eax + eax]
mov dword [esp + 0x18], esi
test esi, esi
je 0x48455c
mov edi, edi
cmp ecx, 4
jl 0x484549
xor ecx, ecx
jmp 0x48454a
inc ecx
mov al, byte [ecx + 0x5898b8]
xor byte [esp + edx + 0xbdc], al
inc edx
cmp edx, esi
jb 0x484540
add esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c4]
push esi
call fcn.004736a0
push dword [esp + 0x18]
lea eax, [esp + 0xbe0]
push eax
mov eax, dword [esp + 0x1cc]
add eax, dword [esp + 0x1c]
push eax
call fcn.00531580
add edi, 0x18
mov dword [esp + 0x20], esi
add esp, 0xc
lea eax, [edi - 4]
cmp eax, dword [esp + 0x20]
jne 0x484203
mov edi, dword [0x5b9c84]
test edi, edi
jne 0x4845e0
push 0x38
call fcn.00529b2d
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x11bf0], 5
test eax, eax
je 0x4845d0
mov ecx, eax
call fcn.00437530
mov edi, eax
jmp 0x4845d2
xor edi, edi
mov byte [esp + 0x11bf0], 4
mov dword [0x5b9c84], edi
lea ecx, [esp + 0x5c]
call fcn.0041f010
mov byte [esp + 0x11bf0], 6
mov dword [esp + 0x5c], vtable.CProcLogEntry.0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov byte [esp + 0x11bf0], 7
lea eax, [esp + 0x140]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x14c], 0x3f400000
mov dword [esp + 0x150], 0x3e800000
mov dword [esp + 0x154], 0x40100000
mov dword [esp + 0x158], 0xffffffff
mov dword [esp + 0x15c], 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0x11
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0xa
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
mov dword [esp + 0x14c], 0x3f400000
mov dword [esp + 0x150], 0x3e800000
mov dword [esp + 0x154], 0x40100000
mov dword [esp + 0x158], 0x26
mov dword [esp + 0x15c], 0
mov byte [esp + 0x11bf0], 0xa
mov dword [esp + 0x4c], 0
mov byte [esp + 0x11bf0], 0xb
lea ecx, [esp + 0x134]
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x4c], esi
push eax
call fcn.00455ad0
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0x7fff
push eax
lea eax, [esp + 0x1be0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 0x1bdc]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x484755
sub edx, ecx
lea eax, [esp + 0x1bdc]
sar edx, 1
lea ecx, [esp + 0xb0]
push edx
push eax
call fcn.00402600
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.00437850
mov edi, 1
mov byte [esp + 0x11bf0], 4
lea ecx, [esp + 0x5c]
call fcn.004216a0
mov byte [esp + 0x11bf0], 3
lea eax, [esp + 0x1c8]
cmp dword [esp + 0x1c4], eax
je 0x4847bf
lea ecx, [esp + 0x1c4]
call fcn.0041b750
mov byte [esp + 0x11bf0], 2
or esi, 0xffffffff
mov edx, dword [esp + 0x10]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4847e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x11bf0], 1
mov ecx, esi
mov edx, dword [esp + 0x40]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48480c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x11bf0], 0
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x48482f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x11bf0], 0xffffffff
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x484873
push dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004855c0
push esi
call fcn.005295dd
add esp, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, edi
mov ecx, dword [esp + 0x11be8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x11bd4]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4