Function at 0x100a440
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.0100cbde
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
cmp esi, 1
je 0x100ac4d
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
mov dword [ebp - 0x43c], 1
call fcn.01007e16
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
cmp dword [0x10126c0], ebx
je 0x100a537
push dword [0x10126d4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [0x1013b8c], eax
cmp eax, ebx
jne 0x100a537
mov esi, 0x8007000e
jmp 0x100ac4d
lea eax, [ebp - 0x41c]
push eax
call fcn.01009753
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
cmp dword [ebp - 0x41c], ebx
je 0x100a58f
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 0x100a59d
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 0x100a5cc
cmp ecx, ebx
jne 0x100a5cc
mov dword [0x1013b84], ebx
cmp edx, ebx
jne 0x100a5e7
cmp eax, ebx
je 0x100a5c7
cmp ecx, ebx
jne 0x100a5e7
xor edi, edi
inc edi
jmp 0x100a5f1
mov dword [0x1013b84], 1
cmp ecx, ebx
je 0x100a5bb
cmp dword [0x1013320], ebx
je 0x100a5bb
push 2
pop edi
jmp 0x100a5e9
xor edi, edi
cmp edx, ebx
jne 0x100aba4
cmp ecx, ebx
je 0x100a5fd
cmp eax, ebx
jne 0x100aba4
cmp dword [0x1012300], ebx
je 0x100a6da
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 0x100a67a
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.01006ca2
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
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 0x100ac4b
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.010094fd
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
cmp dword [0x1013b80], ebx
je 0x100a6cb
mov dword [ebp - 0x440], 0x12
lea edx, [ebp - 0x420]
push edx
push dword [ebp - 0x440]
jmp 0x100a65a
cmp eax, ebx
je 0x100a829
push ebx
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
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 0x100ac4d
push dword [ebp - 0x41c]
push 0x10018c0
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100ac4d
cmp dword [0x1012900], ebx
jne 0x100ac4d
cmp dword [0x1012ef0], ebx
jne 0x100ac4d
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 0x100a79a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100a796
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100a79c
xor esi, esi
cmp esi, ebx
jl 0x100ac4d
push 0x10019b0
push edi
lea eax, [ebp - 0x404]
push eax
call fcn.01007d5d
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
lea eax, [ebp - 0x404]
push eax
mov dword [0x1012960], 1
call fcn.0100c045
mov dword [0x1012974], eax
cmp eax, ebx
je 0x100a52d
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, bx
jne 0x100a7e8
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 0x100ac4d
jmp 0x100ac3a
cmp dword [0x1012240], ebx
je 0x100a871
push ebx
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
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 0x100ac4b
cmp dword [0x1012180], ebx
je 0x100a9bd
cmp dword [0x1012600], ebx
je 0x100a904
cmp dword [0x1012780], ebx
jne 0x100a8b4
lea eax, [ebp - 0x424]
push eax
call fcn.01006fd1
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
push ebx
push dword [ebp - 0x424]
call fcn.01009ed0
jmp 0x100ac4b
lea eax, [ebp - 0x430]
push eax
push dword [0x1012794]
call fcn.01006f2b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
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 0x100ac4d
push 0x10017a4
call fcn.0100d8d4
jmp 0x100ac4d
cmp dword [0x1012780], ebx
je 0x100a9ac
mov ecx, dword [ebp - 0x418]
mov eax, 0x1001844
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100a941
cmp dx, bx
je 0x100a93d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100a941
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x100a91b
xor eax, eax
jmp 0x100a946
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100a9ac
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
cmp dword [0x1013320], ebx
je 0x100a99c
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 0x100ac4d
push dword [ebp - 0x408]
call fcn.01009dd6
jmp 0x100ac4b
lea eax, [ebp - 0x41c]
push eax
call fcn.0100a0c9
jmp 0x100ac4b
cmp dword [0x10122a0], ebx
je 0x100aafa
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax]
cmp dword [ebp - 0x414], ebx
jne 0x100aa72
push eax
call dword [ecx + 0xf4]
mov esi, eax
and eax, 0xffff
cmp eax, 0xaa
jne 0x100ac4d
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x408]
call fcn.0100715a
test eax, eax
jl 0x100ac4d
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 0x100ac4d
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x418]
push 0x28e
push ebx
call fcn.0100d880
add esp, 0x10
jmp 0x100ac4d
lea edx, [ebp - 0x428]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
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 0x100ac4d
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 0x100ac4d
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
lea edx, [ebp - 0x420]
push edx
push 2
jmp 0x100a65a
cmp dword [0x10123c0], ebx
je 0x100ab31
push ebx
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
push dword [ebp - 0x408]
call fcn.010099d9
jmp 0x100ac4b
cmp dword [0x1012360], ebx
je 0x100ac4d
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 0x100ac4d
push dword [ebp - 0x408]
call fcn.0100945b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
lea edx, [ebp - 0x420]
push edx
xor edx, edx
cmp dword [0x1012ef0], ebx
setne dl
lea edx, [edx + edx + 1]
push edx
jmp 0x100ac11
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.01009a8b
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
push dword [ebp - 0x40c]
push dword [ebp - 0x408]
call fcn.010094fd
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
cmp dword [ebp - 0x414], ebx
jne 0x100abf5
cmp dword [0x1012ef0], ebx
jne 0x100abf5
xor edi, edi
inc edi
jmp 0x100abf8
push 3
pop edi
push dword [ebp - 0x408]
call fcn.010081a3
mov esi, eax
cmp esi, ebx
jl 0x100ac4d
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 0x100ac4d
cmp dword [0x1013b80], ebx
je 0x100ac4d
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 0x100ac6d
push 0x3b60
push ebx
call fcn.0100d880
pop ecx
pop ecx
jmp 0x100ac7d
cmp esi, 1
je 0x100ac7d
push 0x10019a0
push esi
call fcn.0100d8ec
cmp dword [ebp - 0x41c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x100ac9e
push dword [ebp - 0x41c]
push 0
call ebx
push eax
call edi
cmp dword [ebp - 0x418], 0
je 0x100acb4
push dword [ebp - 0x418]
push 0
call ebx
push eax
call edi
cmp dword [ebp - 0x414], 0
je 0x100acca
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 0x100ace1
push dword [ebp - 0x410]
call edi
mov eax, dword [0x1013b8c]
test eax, eax
je 0x100acf4
push eax
call edi
and dword [0x1013b8c], 0
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x100ad0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x408], 0
cmp dword [ebp - 0x40c], 0
je 0x100ad20
mov eax, dword [ebp - 0x40c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x100ad37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x428], 0
cmp dword [ebp - 0x424], 0
je 0x100ad4c
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x100ad63
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x42c], 0
cmp dword [ebp - 0x430], 0
je 0x100ad7b
push dword [ebp - 0x430]
call edi
and dword [ebp - 0x430], 0
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x100ad92
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x420], 0
cmp dword [ebp - 0x43c], 0
je 0x100ada1
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0100bca3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b081
leave
ret