Function at 0x100a42e
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x1013b58]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
lea eax, [ebp - 0x450]
push eax
mov dword [ebp - 0x440], 2
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x43c], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
lea edi, [ebp - 0x41c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x430]
stosd dword es:[edi], eax
push 1
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x10126d8
push 0x1012618
push esi
push dword [ebp + 8]
call fcn.0100cbcf
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
cmp esi, 1
je 0x100ac3b
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
mov dword [ebp - 0x43c], 1
call fcn.01007e16
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
cmp dword [0x10126c0], ebx
je 0x100a525
push dword [0x10126d4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [0x1013b8c], eax
cmp eax, ebx
jne 0x100a525
mov esi, 0x8007000e
jmp 0x100ac3b
lea eax, [ebp - 0x41c]
push eax
call fcn.01009741
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
cmp dword [ebp - 0x41c], ebx
je 0x100a57d
push dword [ebp - 0x41c]
push 0x1001934
call edi
push dword [ebp - 0x41c]
neg eax
sbb eax, eax
inc eax
push 0x100191c
mov dword [0x1013b80], eax
call edi
mov ecx, dword [0x1013b80]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x100a58b
mov ecx, dword [0x1013500]
mov dword [0x1013b80], ecx
xor eax, eax
mov edx, dword [0x1012120]
mov dword [0x1013b88], eax
cmp eax, ebx
mov eax, dword [0x10121e0]
jne 0x100a5ba
cmp ecx, ebx
jne 0x100a5ba
mov dword [0x1013b84], ebx
cmp edx, ebx
jne 0x100a5d5
cmp eax, ebx
je 0x100a5b5
cmp ecx, ebx
jne 0x100a5d5
xor edi, edi
inc edi
jmp 0x100a5df
mov dword [0x1013b84], 1
cmp ecx, ebx
je 0x100a5a9
cmp dword [0x1013320], ebx
je 0x100a5a9
push 2
pop edi
jmp 0x100a5d7
xor edi, edi
cmp edx, ebx
jne 0x100ab92
cmp ecx, ebx
je 0x100a5eb
cmp eax, ebx
jne 0x100ab92
cmp dword [0x1012300], ebx
je 0x100a6c8
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
cmp dword [0x10134a0], ebx
je 0x100a668
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.01006ca2
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
lea edx, [ebp - 0x420]
push edx
push 0x20
push dword [0x1013b8c]
mov eax, dword [ebp - 0x408]
push dword [ebp - 0x410]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf0]
jmp 0x100ac39
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.010094eb
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
cmp dword [0x1013b80], ebx
je 0x100a6b9
mov dword [ebp - 0x440], 0x12
lea edx, [ebp - 0x420]
push edx
push dword [ebp - 0x440]
jmp 0x100a648
cmp eax, ebx
je 0x100a817
push ebx
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
xor edx, edx
cmp dword [0x1012900], ebx
setne dl
dec edx
push edx
push eax
call dword [ecx + 0xf8]
mov esi, eax
cmp esi, 0x8007051f
jne 0x100ac3b
push dword [ebp - 0x41c]
push 0x10018c0
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100ac3b
cmp dword [0x1012900], ebx
jne 0x100ac3b
cmp dword [0x1012ef0], ebx
jne 0x100ac3b
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x404]
push eax
mov edi, 0x200
push 2
mov dword [ebp - 0x438], edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x100a788
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100a784
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100a78a
xor esi, esi
cmp esi, ebx
jl 0x100ac3b
push 0x10019b0
push edi
lea eax, [ebp - 0x404]
push eax
call fcn.01007d5d
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
lea eax, [ebp - 0x404]
push eax
mov dword [0x1012960], 1
call fcn.0100c036
mov dword [0x1012974], eax
cmp eax, ebx
je 0x100a51b
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, bx
jne 0x100a7d6
sub ecx, esi
sar ecx, 1
xor edx, edx
mov word [eax + ecx*2 - 2], dx
mov ecx, dword [ebp - 0x438]
mov edx, dword [0x1012974]
xor eax, eax
mov word [edx + ecx*2], ax
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
jmp 0x100ac28
cmp dword [0x1012240], ebx
je 0x100a85f
push ebx
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
xor edx, edx
cmp dword [0x1012900], ebx
setne dl
dec edx
push edx
push eax
call dword [ecx + 0xfc]
jmp 0x100ac39
cmp dword [0x1012180], ebx
je 0x100a9ab
cmp dword [0x1012600], ebx
je 0x100a8f2
cmp dword [0x1012780], ebx
jne 0x100a8a2
lea eax, [ebp - 0x424]
push eax
call fcn.01006fd1
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push ebx
push dword [ebp - 0x424]
call fcn.01009ebe
jmp 0x100ac39
lea eax, [ebp - 0x430]
push eax
push dword [0x1012794]
call fcn.01006f2b
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
lea eax, [ebp - 0x434]
push eax
push 1
push dword [0x1012794]
lea eax, [ebp - 0x430]
push eax
call fcn.010078b0
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push 0x10017a4
call fcn.0100d8c5
jmp 0x100ac3b
cmp dword [0x1012780], ebx
je 0x100a99a
mov ecx, dword [ebp - 0x418]
mov eax, 0x1001844
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100a92f
cmp dx, bx
je 0x100a92b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100a92f
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x100a909
xor eax, eax
jmp 0x100a934
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100a99a
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
cmp dword [0x1013320], ebx
je 0x100a98a
push dword [0x1013b8c]
mov eax, dword [ebp - 0x408]
push dword [ebp - 0x410]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xec]
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x408]
call fcn.01009dc4
jmp 0x100ac39
lea eax, [ebp - 0x41c]
push eax
call fcn.0100a0b7
jmp 0x100ac39
cmp dword [0x10122a0], ebx
je 0x100aae8
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
cmp dword [ebp - 0x414], ebx
jne 0x100aa60
push eax
call dword [ecx + 0xf4]
mov esi, eax
and eax, 0xffff
cmp eax, 0xaa
jne 0x100ac3b
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x408]
call fcn.0100715a
test eax, eax
jl 0x100ac3b
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x434]
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x100ac3b
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x418]
push 0x28e
push ebx
call fcn.0100d871
add esp, 0x10
jmp 0x100ac3b
lea edx, [ebp - 0x428]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
mov eax, dword [ebp - 0x40c]
mov ecx, dword [eax]
lea edx, [ebp - 0x448]
push edx
push 0x1001aa0
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push 9
pop eax
mov word [ebp - 0x450], ax
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x450]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
lea edx, [ebp - 0x420]
push edx
push 2
jmp 0x100a648
cmp dword [0x10123c0], ebx
je 0x100ab1f
push ebx
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x408]
call fcn.010099c7
jmp 0x100ac39
cmp dword [0x1012360], ebx
je 0x100ac3b
lea eax, [ebp - 0x408]
push eax
push 0x10019c0
push 0x15
push ebx
push 0x1001a60
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x408]
call fcn.01009449
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
lea edx, [ebp - 0x420]
push edx
xor edx, edx
cmp dword [0x1012ef0], ebx
setne dl
lea edx, [edx + edx + 1]
push edx
jmp 0x100abff
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a79
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.010094eb
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
cmp dword [ebp - 0x414], ebx
jne 0x100abe3
cmp dword [0x1012ef0], ebx
jne 0x100abe3
xor edi, edi
inc edi
jmp 0x100abe6
push 3
pop edi
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
lea edx, [ebp - 0x420]
push edx
push edi
push dword [0x1013b8c]
mov eax, dword [ebp - 0x408]
push dword [ebp - 0x410]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf0]
mov esi, eax
cmp esi, ebx
jl 0x100ac3b
cmp dword [0x1013b80], ebx
je 0x100ac3b
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xf8]
mov esi, eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp esi, ebx
jne 0x100ac5b
push 0x3b60
push ebx
call fcn.0100d871
pop ecx
pop ecx
jmp 0x100ac6b
cmp esi, 1
je 0x100ac6b
push 0x10019a0
push esi
call fcn.0100d8dd
cmp dword [ebp - 0x41c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x100ac8c
push dword [ebp - 0x41c]
push 0
call ebx
push eax
call edi
cmp dword [ebp - 0x418], 0
je 0x100aca2
push dword [ebp - 0x418]
push 0
call ebx
push eax
call edi
cmp dword [ebp - 0x414], 0
je 0x100acb8
push dword [ebp - 0x414]
push 0
call ebx
push eax
call edi
cmp dword [ebp - 0x410], 0
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x100accf
push dword [ebp - 0x410]
call edi
mov eax, dword [0x1013b8c]
test eax, eax
je 0x100ace2
push eax
call edi
and dword [0x1013b8c], 0
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x100acf9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x408], 0
cmp dword [ebp - 0x40c], 0
je 0x100ad0e
mov eax, dword [ebp - 0x40c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x100ad25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x428], 0
cmp dword [ebp - 0x424], 0
je 0x100ad3a
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x100ad51
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x42c], 0
cmp dword [ebp - 0x430], 0
je 0x100ad69
push dword [ebp - 0x430]
call edi
and dword [ebp - 0x430], 0
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x100ad80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x420], 0
cmp dword [ebp - 0x43c], 0
je 0x100ad8f
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0100bc93
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b071
leave
ret