Function at 0x1809b1d9
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 [0x180fb8d9]
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, 0x180fbb80
and ecx, esi
push 1
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x90], eax
pop ebx
je 0x1809b263
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 0x1809b2ba
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2b2
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 0x1809b7e2
push dword [ebp - 0x94]
mov eax, dword [edi]
push edi
call dword [eax + 0x88]
mov dword [ebp - 0x6c], eax
test eax, eax
jge 0x1809b2f6
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2b2
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 0x1809b29d
push dword [ebp - 0x90]
mov eax, dword [edi]
push edi
call dword [eax + 0x48]
mov dword [ebp - 0x6c], eax
test eax, eax
jge 0x1809b332
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2b2
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 0x1809b29d
cmp byte [ebp + 0x14], 0
mov eax, dword [edi]
je 0x1809b34d
push 0
push 0x180c29a4
push edi
call dword [eax + 0x78]
mov dword [ebp - 0x6c], eax
jmp 0x1809b482
push 0x2000
push edi
call dword [eax + 0x70]
mov edi, eax
test edi, edi
jge 0x1809b39c
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b7e0
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 0x1809b7e0
mov eax, dword [0x180fa248]
mov ecx, 0x180fa248
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 0x1809b452
call fcn.1800fc86
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov edi, eax
je 0x1809b43f
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 0x1809b7e0
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, 0x180fbb80
cmp dword [ebp - 0x6c], 0
jge 0x1809b4b5
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2b2
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 0x1809b29d
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 0x1809b504
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b2b2
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 0x1809b29d
cmp byte [ebp + 0x18], 0
je 0x1809b51f
cmp byte [ebp + 0x14], 0
je 0x1809b51f
mov eax, edi
call fcn.1809af28
test eax, eax
jl 0x1809b7e2
push dword [ebp + 0x1c]
mov eax, edi
call fcn.1809b024
pop ecx
test eax, eax
jl 0x1809b7e2
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 0x1809b590
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
mov edi, 0x80004002
je 0x1809b7e0
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 0x1809b7d3
mov ecx, dword [eax]
push ebx
push 0
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jge 0x1809b5c7
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b7d3
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 0x1809b576
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp - 0x80]
je 0x1809b5e1
test eax, eax
je 0x1809b5da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1809b7e2
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 0x1809b63b
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b7c7
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 0x1809b7c7
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x1809b64c
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 0x1809b76c
mov eax, edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.18007315
test al, al
je 0x1809b76c
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 0x1809b73b
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
je 0x1809b6fc
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 0x1809b2b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1809b2b2
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 0x1809b5d0
call fcn.1800fc86
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, esi
mov edi, eax
je 0x1809b7aa
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 0x1809b7e0
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.1809cca5
leave
ret