Function at 0x1809b1e7
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
movzx ecx, byte [0x180fb8f9]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
neg ecx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x10]
sbb ecx, ecx
mov esi, 0x180fbba0
and ecx, esi
push 1
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x90], eax
pop ebx
je 0x1809b271
push 3
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
mov dword [ebp - 0x78], eax
movzx eax, byte [ebp + 0x14]
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x88]
mov dword [ebp - 0x74], 3
push str._CreateScheduledTask___s___s___d_
push eax
mov dword [ebp - 0x70], ebx
call fcn.18001000
add esp, 0x14
push dword [ebp - 0x88]
mov eax, dword [edi]
push edi
call dword [eax + 0x80]
mov dword [ebp - 0x6c], eax
test eax, eax
jge 0x1809b2c8
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2c0
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push dword [ebp - 0x6c]
push str._ITask.SetApplicationName_failed__0x_x_
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
call fcn.18001000
add esp, 0xc
mov eax, dword [ebp - 0x6c]
jmp 0x1809b7f0
push dword [ebp - 0x94]
mov eax, dword [edi]
push edi
call dword [eax + 0x88]
mov dword [ebp - 0x6c], eax
test eax, eax
jge 0x1809b304
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2c0
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push dword [ebp - 0x6c]
push str._ITask.SetParameters_failed__0x_x_
jmp 0x1809b2ab
push dword [ebp - 0x90]
mov eax, dword [edi]
push edi
call dword [eax + 0x48]
mov dword [ebp - 0x6c], eax
test eax, eax
jge 0x1809b340
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2c0
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push dword [ebp - 0x6c]
push str._ITask.SetComment_failed__0x_x_
jmp 0x1809b2ab
cmp byte [ebp + 0x14], 0
mov eax, dword [edi]
je 0x1809b35b
push 0
push 0x180c29a4
push edi
call dword [eax + 0x78]
mov dword [ebp - 0x6c], eax
jmp 0x1809b490
push 0x2000
push edi
call dword [eax + 0x70]
mov edi, eax
test edi, edi
jge 0x1809b3aa
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b7ee
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push str._ITask.SetFlags_failed__0x_x_
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
call fcn.18001000
add esp, 0xc
jmp 0x1809b7ee
mov eax, dword [0x180fa268]
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x88], eax
mov eax, 0x101
mov dword [ebp - 0x90], eax
push eax
lea eax, [ebp - 0x88]
lea edi, [ebp - 0x78]
call fcn.18002f83
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x90]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, dword [ebp - 0x78]
neg eax
sbb al, al
inc al
mov byte [ebp - 0x89], al
mov eax, dword [ebp - 0x70]
call fcn.18003fe5
cmp byte [ebp - 0x89], 0
je 0x1809b460
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov edi, eax
je 0x1809b44d
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push str._::GetUserName_failed__0x_x_
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
call fcn.18001000
add esp, 0xc
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
call fcn.18004250
jmp 0x1809b7ee
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
push 0
push dword [ebp - 0x88]
push eax
call dword [ecx + 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
call fcn.18004250
mov edi, dword [ebp - 0xa8]
mov esi, 0x180fbba0
cmp dword [ebp - 0x6c], 0
jge 0x1809b4c3
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2c0
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push dword [ebp - 0x6c]
push str._ITask.SetAccountInformation_failed__0x_x_
jmp 0x1809b2ab
call fcn.1800fcdd
xor ecx, ecx
test al, al
setne cl
or eax, 0xffffffff
sub eax, ecx
mov ecx, dword [edi]
push eax
push edi
call dword [ecx + 0xa8]
mov dword [ebp - 0x6c], eax
test eax, eax
jge 0x1809b512
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2c0
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push dword [ebp - 0x6c]
push str._ITask.SetMaxRunTime_failed__0x_x_
jmp 0x1809b2ab
cmp byte [ebp + 0x18], 0
je 0x1809b52d
cmp byte [ebp + 0x14], 0
je 0x1809b52d
mov eax, edi
call fcn.1809af36
test eax, eax
jl 0x1809b7f0
push dword [ebp + 0x1c]
mov eax, edi
call fcn.1809b032
pop ecx
test eax, eax
jl 0x1809b7f0
mov eax, dword [edi]
and dword [ebp - 0x80], 0
lea ecx, [ebp - 0x80]
push ecx
push 0x180c8290
push edi
call dword [eax]
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x1809b59e
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
mov edi, 0x80004002
je 0x1809b7ee
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push edi
push str._ITask.QueryInterface_IPersistFile_failed__0x_x_
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], esi
call fcn.18001000
add esp, 0xc
jmp 0x1809b7e1
mov ecx, dword [eax]
push ebx
push 0
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jge 0x1809b5d5
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b7e1
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push edi
push str._IPersistFile.Save_failed__0x_x_
jmp 0x1809b584
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp - 0x80]
je 0x1809b5ef
test eax, eax
je 0x1809b5e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1809b7f0
and dword [ebp - 0x84], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x84]
push edx
push eax
call dword [ecx + 0x20]
mov edi, eax
test edi, edi
jge 0x1809b649
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b7d5
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push str._IPersistFile.GetCurFile_failed__0x_x_
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
call fcn.18001000
add esp, 0xc
jmp 0x1809b7d5
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1809b65a
and dword [ebp - 0x80], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea edi, [ebp - 0x68]
mov dword [ebp - 0xa4], 0x180c37b4
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
call fcn.180036ab
lea eax, [ebp - 0xa4]
call fcn.18028048
test al, al
je 0x1809b77a
mov eax, edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.18007315
test al, al
je 0x1809b77a
mov ecx, dword [ebp - 0x84]
push 0
push 0x1f01ff
mov eax, edi
push eax
push ebx
call fcn.18004a21
add esp, 0x10
mov dword [ebp - 0x6c], eax
test eax, eax
jge 0x1809b749
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b70a
mov edi, dword [ebp - 0x84]
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
push edi
lea eax, [ebp - 0x7c]
push str._Could_not_adjust_DACL___s__0x_x_
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
call fcn.18001000
add esp, 0x10
lea ecx, [ebp - 0x68]
call fcn.18003659
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x180c37b4
call fcn.1800865e
push dword [ebp - 0x84]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1809b2c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1809b2c0
lea ecx, [ebp - 0x68]
call fcn.18003659
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x180c37b4
call fcn.1800865e
push dword [ebp - 0x84]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x80]
jmp 0x1809b5de
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, esi
mov edi, eax
je 0x1809b7b8
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.18001d8a
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push str._Failed_to_get_current_user_sid__0x_x_
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
call fcn.18001000
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.18003659
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x180c37b4
call fcn.1800865e
push dword [ebp - 0x84]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1809b7ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret