Function at 0x419c00
Capabilities:
Get hostname
Get session information
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x45173b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4642d8]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4642d8]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
push 0x1fe
lea ecx, [esp + 0x23a]
xor eax, eax
push ebp
mov dword [esp + 0x30], ebp
push ecx
mov dword [esp + 0x38], edi
mov word [esp + reloc.winhttp.dll_WinHttpReceiveResponse], ax
call fcn.00435a70
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x238]
push eax
push 6
mov dword [esp + 0x24], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor esi, esi
jmp 0x419c90
mov ecx, dword [esi + 0x466c94]
push ecx
lea edx, [esp + 0x238]
push edx
call fcn.004342ce
add esp, 8
test eax, eax
je 0x419cc3
add esi, 4
cmp esi, 0x14
jb 0x419c90
push edi
mov ecx, 0x4563dc
call fcn.004056e0
jmp 0x419ec2
mov eax, dword [0x466ddc]
mov edx, dword [eax + 0xc]
mov ecx, 0x466ddc
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 1
push ebp
push ebp
mov dword [esp + 0x454], ebp
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x419d99
xor ebx, ebx
cmp dword [esp + 0x20], ebp
jbe 0x419d8f
xor edi, edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
cmp dword [edi + eax + 8], ebp
jne 0x419d85
lea edx, [esp + 0x28]
push edx
mov edx, dword [edi + eax]
lea ecx, [esp + 0x28]
push ecx
push 5
push edx
push ebp
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x419d85
push 0xd
push str._sessionname:
lea eax, [esp + 0x1c]
push eax
call fcn.00416370
mov edx, dword [esp + 0x24]
cmp edx, ebp
jne 0x419d5a
xor eax, eax
jmp 0x419d6f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x419d60
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.00416370
mov edx, dword [esp + 0x24]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
inc ebx
add edi, 0xc
cmp ebx, dword [esp + 0x20]
jb 0x419d11
mov eax, dword [esp + 0x1c]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
push 0x1fe
lea edx, [esp + 0x3a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x40], cx
call fcn.00435a70
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
push 7
mov dword [esp + 0x24], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x419e2f
lea eax, [esp + 0x34]
lea edx, [eax + 2]
jmp 0x419de0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x419de0
sub eax, edx
sar eax, 1
je 0x419e2f
push 0xe
push str._computername:
lea edx, [esp + 0x1c]
push edx
call fcn.00416370
lea eax, [esp + 0x34]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x419e10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00416370
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], ebp
lea ecx, [esi + 0xc]
jl 0x419e59
cmp eax, dword [esi]
jne 0x419e59
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x419e95
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebp
jne 0x419e72
call fcn.00402b20
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00432217
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [esp + 0x2c]
mov dword [edi], edx
mov dword [esp + 0x440], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419ec2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.00432079
add esp, 0x430
ret