Function at 0x4f3710
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68ff8e
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x725fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x480]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x480], 0x201
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
xor eax, eax
mov dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x418], 7
mov word [ebp - 0x42c], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3790
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00403420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x46c]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x470], eax
call fcn.004f42e0
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 3
call fcn.004f4410
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
mov esi, dword [ebp - 0x46c]
push edi
call fcn.004f4580
mov byte [ebp - 4], 5
mov ecx, dword [eax]
test ecx, ecx
je 0x4f3806
mov ecx, dword [ecx]
jmp 0x4f3808
xor ecx, ecx
mov eax, dword [esi]
push 0
push ecx
push esi
call dword [eax + 0x3c]
mov esi, dword [ebp - 0x43c]
or edi, 0xffffffff
test esi, esi
je 0x4f3861
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4f3861
test esi, esi
je 0x4f3861
mov eax, dword [esi]
test eax, eax
je 0x4f383f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3856
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
add esp, 8
mov dword [ebp - 0x438], 0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x438]
mov eax, dword [ebp - 0x47c]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x4f3894
mov byte [ebp - 0x42d], 0
jmp 0x4f412c
mov dword [ebp - 0x468], 0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x468]
mov eax, dword [ebp - 0x438]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
mov esi, dword [ebp - 0x468]
lea ecx, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x42c]
push eax
call fcn.004f4580
mov byte [ebp - 4], 8
mov ecx, dword [eax]
test ecx, ecx
je 0x4f38e9
mov ecx, dword [ecx]
jmp 0x4f38eb
xor ecx, ecx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x28]
mov esi, dword [ebp - 0x43c]
mov dword [ebp - 0x434], eax
test esi, esi
je 0x4f394b
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4f394b
test esi, esi
je 0x4f394b
mov eax, dword [esi]
test eax, eax
je 0x4f3923
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f393a
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
mov eax, dword [ebp - 0x434]
add esp, 8
test eax, eax
jns 0x4f395b
mov byte [ebp - 0x42d], 0
jmp 0x4f4118
mov dword [ebp - 0x440], 0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x438]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x4f40fd
mov eax, dword [ebp - 0x440]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x440]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, dword [ebp - 0x440]
lea ecx, [ebp - 0x434]
push str.PT0S
call fcn.004f4580
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x4f39c4
mov ecx, dword [ecx]
jmp 0x4f39c6
xor ecx, ecx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x70]
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x434]
test esi, esi
je 0x4f3a1e
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4f3a1e
test esi, esi
je 0x4f3a1e
mov eax, dword [esi]
test eax, eax
je 0x4f39fc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3a13
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
add esp, 8
mov eax, dword [ebp - 0x440]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x440]
lea edx, [ebp - 0x448]
mov dword [ebp - 0x448], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x9c]
mov eax, dword [ebp - 0x448]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x448]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x448]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x448]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov ecx, dword [ebp - 0x448]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
js 0x4f40fd
mov dword [ebp - 0x44c], 0
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x44c]
mov eax, dword [ebp - 0x438]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x4f40e0
mov esi, dword [ebp - 0x44c]
lea ecx, [ebp - 0x434]
push str.Author
call fcn.004f4580
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
test ecx, ecx
je 0x4f3ae7
mov ecx, dword [ecx]
jmp 0x4f3ae9
xor ecx, ecx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x20]
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x434]
test esi, esi
je 0x4f3b41
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4f3b41
test esi, esi
je 0x4f3b41
mov eax, dword [esi]
test eax, eax
je 0x4f3b1f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3b36
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
add esp, 8
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
mov esi, dword [ebp - 0x44c]
lea ecx, [ebp - 0x434]
cmovae eax, dword [ebp - 0x42c]
push eax
call fcn.004f4580
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
test ecx, ecx
je 0x4f3b75
mov ecx, dword [ecx]
jmp 0x4f3b77
xor ecx, ecx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x30]
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x434]
test esi, esi
je 0x4f3bcf
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4f3bcf
test esi, esi
je 0x4f3bcf
mov eax, dword [esi]
test eax, eax
je 0x4f3bad
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3bc4
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
add esp, 8
mov eax, dword [ebp - 0x44c]
push 3
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x44c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
js 0x4f40e0
mov dword [ebp - 0x464], 0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x464]
mov eax, dword [ebp - 0x438]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x4f3c24
mov byte [ebp - 0x42d], 0
jmp 0x4f40ca
mov dword [ebp - 0x460], 0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x460]
mov eax, dword [ebp - 0x464]
push edx
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x4f3c57
mov byte [ebp - 0x42d], 0
jmp 0x4f40b6
mov dword [ebp - 0x45c], 0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x45c]
mov eax, dword [ebp - 0x460]
push edx
push 0x6d0cb0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4f409b
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
mov esi, dword [ebp - 0x45c]
lea ecx, [ebp - 0x434]
cmovae eax, dword [ebp - 0x42c]
push eax
call fcn.004f4580
mov byte [ebp - 4], 0x11
mov ecx, dword [eax]
test ecx, ecx
je 0x4f3cb8
mov ecx, dword [ecx]
jmp 0x4f3cba
xor ecx, ecx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x5c]
mov esi, dword [ebp - 0x434]
mov dword [ebp - 0x43c], eax
test esi, esi
je 0x4f3d1a
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4f3d1a
test esi, esi
je 0x4f3d1a
mov eax, dword [esi]
test eax, eax
je 0x4f3cf2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3d09
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
mov eax, dword [ebp - 0x43c]
add esp, 8
test eax, eax
js 0x4f409b
mov dword [ebp - 0x450], 0
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x450]
mov eax, dword [ebp - 0x438]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x4f3d53
mov byte [ebp - 0x42d], 0
jmp 0x4f4085
mov esi, dword [ebp - 0x450]
lea ecx, [ebp - 0x434]
push str.Author
call fcn.004f4580
mov byte [ebp - 4], 0x13
mov ecx, dword [eax]
test ecx, ecx
je 0x4f3d77
mov ecx, dword [ecx]
jmp 0x4f3d79
xor ecx, ecx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x40]
mov esi, dword [ebp - 0x434]
test esi, esi
je 0x4f3dcd
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4f3dcd
test esi, esi
je 0x4f3dcd
mov eax, dword [esi]
test eax, eax
je 0x4f3dab
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3dc2
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
add esp, 8
mov dword [ebp - 0x458], 0
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x458]
mov eax, dword [ebp - 0x450]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jns 0x4f3e00
mov byte [ebp - 0x42d], 0
jmp 0x4f4071
mov dword [ebp - 0x454], 0
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x454]
mov eax, dword [ebp - 0x458]
push edx
push str.MbLk
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4f4056
push dword [ebp - 0x470]
mov esi, dword [ebp - 0x454]
lea ecx, [ebp - 0x470]
call fcn.004f4580
mov byte [ebp - 4], 0x16
mov ecx, dword [eax]
test ecx, ecx
je 0x4f3e52
mov ecx, dword [ecx]
jmp 0x4f3e54
xor ecx, ecx
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x2c]
mov esi, dword [ebp - 0x470]
mov dword [ebp - 0x434], eax
test esi, esi
je 0x4f3eb4
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4f3eb4
test esi, esi
je 0x4f3eb4
mov eax, dword [esi]
test eax, eax
je 0x4f3e8c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3ea3
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
mov eax, dword [ebp - 0x434]
add esp, 8
test eax, eax
js 0x4f4056
mov dword [ebp - 0x478], 0
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x484]
mov eax, dword [ebp - 0x438]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, 8
push 0x6dcdc0
mov word [ebp - 0x494], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x48c], eax
test eax, eax
je 0x4f41d1
movups xmm0, xmmword [ebp - 0x494]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x4b4]
push eax
movups xmmword [ebp - 0x4c4], xmm0
call esi
movups xmm0, xmmword [ebp - 0x4b4]
lea eax, [ebp - 0x4a4]
push eax
movups xmmword [ebp - 0x4d4], xmm0
call esi
push dword [ebp - 0x474]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x43c]
movups xmm0, xmmword [ebp - 0x4a4]
mov esi, dword [ebp - 0x46c]
movups xmmword [ebp - 0x4e4], xmm0
call fcn.004f4580
mov byte [ebp - 4], 0x1b
mov edx, dword [eax]
test edx, edx
je 0x4f3f6d
mov edx, dword [edx]
jmp 0x4f3f6f
xor edx, edx
movups xmm0, xmmword [ebp - 0x4c4]
mov ecx, dword [esi]
lea eax, [ebp - 0x478]
push eax
sub esp, 0x10
mov eax, esp
push 3
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x4d4]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x4e4]
push 6
push dword [ebp - 0x438]
movups xmmword [eax], xmm0
push edx
push esi
call dword [ecx + 0x44]
mov esi, dword [ebp - 0x43c]
mov dword [ebp - 0x474], eax
test esi, esi
je 0x4f4011
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4f4007
test esi, esi
je 0x4f4007
mov eax, dword [esi]
test eax, eax
je 0x4f3fe5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4f3ffc
push eax
call fcn.00480420
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0063db1c
add esp, 8
mov dword [ebp - 0x43c], 0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x4a4]
push eax
call esi
lea eax, [ebp - 0x4b4]
push eax
call esi
lea eax, [ebp - 0x494]
push eax
call esi
cmp dword [ebp - 0x474], 0
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x478]
setge byte [ebp - 0x42d]
test eax, eax
je 0x4f405d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f405d
mov byte [ebp - 0x42d], 0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x454]
test eax, eax
je 0x4f4071
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x4f4085
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x450]
test eax, eax
je 0x4f40a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f40a2
mov byte [ebp - 0x42d], 0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x4f40b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x4f40ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x4f40e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f40e7
mov byte [ebp - 0x42d], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x4f4104
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f4104
mov byte [ebp - 0x42d], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x4f4118
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x4f412c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x4f4140
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x4f4154
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x4f4168
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x42c]
call fcn.004035b0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f4191
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4f41b0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x42d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063db0b
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0063f330
int3