Function at 0x466280
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3e81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4662b8
mov dword [eax], 0
lea ebx, [ecx + 8]
mov ecx, dword [ebx]
mov dword [ebx], 0
test ecx, ecx
je 0x4662cd
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push 0x4ce6c0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
call fcn.00419090
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push eax
push 0x4d5b04
lea eax, [ebp - 0x14]
push eax
call fcn.00419090
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x466676
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x466676
call fcn.0046c0e0
mov esi, eax
mov ecx, esi
call fcn.0046e8e0
cmp byte [0x4f3c69], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x2c], xmm0
jne 0x466398
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x46638d
movsd xmm0, qword [ebp - 0x2c]
mov ecx, eax
push 0x4f3c69
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x153
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x48
call fcn.0046bf00
jmp 0x46638f
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x4f41c0], eax
mov ecx, esi
call fcn.0046e8f0
mov ecx, dword [0x4f41c0]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.00418b90
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
push dword [ebp - 0x14]
call fcn.00418b90
mov byte [ebp - 4], 4
push dword [esi]
mov ecx, dword [0x4f41c0]
push dword [eax]
push str.Logging:_user___s___domain___s_...
mov edx, dword [ecx]
push ecx
call dword [edx + 0x48]
mov byte [ebp - 4], 3
add esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466408
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466428
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f41c0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41c0]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
lea ecx, [ebp - 0x1c]
call fcn.004666e0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov ebx, dword [ebp - 0x18]
mov edi, dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [esi + 4]
push eax
push 0
push 9
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
setne al
test al, al
je 0x466548
call fcn.0046c0e0
mov edi, eax
mov ecx, edi
call fcn.0046e8e0
cmp byte [0x4f3c68], 0
jne 0x4664f2
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4664e7
movsd xmm0, qword [ebp - 0x2c]
mov ecx, eax
push 0x4f3c68
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x158
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x48
call fcn.0046bf00
jmp 0x4664e9
xor eax, eax
mov byte [ebp - 4], 5
mov dword [0x4f41a8], eax
mov ecx, edi
call fcn.0046e8f0
mov ecx, dword [0x4f41a8]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov eax, dword [0x4f41a8]
push str.Impersonating...
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x4f41a8]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41a8]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
mov ecx, esi
call fcn.004448f0
test al, al
jne 0x466641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x466559
mov dword [eax], edi
call fcn.0046c0e0
mov ebx, eax
mov ecx, ebx
call fcn.0046e8e0
cmp byte [0x4f3c71], 0
jne 0x4665c3
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4665b8
movsd xmm0, qword [ebp - 0x2c]
mov ecx, eax
push 0x4f3c71
sub esp, 8
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x162
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.0046bf00
jmp 0x4665ba
xor eax, eax
mov byte [ebp - 4], 5
mov dword [0x4f41b0], eax
mov ecx, ebx
call fcn.0046e8f0
mov ecx, dword [0x4f41b0]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov edx, edi
lea ecx, [ebp + 0x10]
call fcn.00410ed0
mov byte [ebp - 4], 8
mov ecx, dword [0x4f41b0]
push dword [eax]
push edi
mov edx, dword [ecx]
push str.GetLogonToken_failed_with_code___lu_:__s
push ecx
call dword [edx + 0x48]
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp + 0x10]
add esp, 0x10
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466623
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f41b0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f41b0]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
jmp 0x466644
or edi, 0xffffffff
mov ebx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
add ebx, 8
cmp ebx, ecx
je 0x466666
mov ecx, dword [ebx]
mov eax, esi
xor esi, esi
mov dword [ebx], eax
mov dword [ebp - 0x1c], esi
test ecx, ecx
je 0x466666
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [ebp - 4], 1
test esi, esi
je 0x466676
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
cmp dword [ebx], 0
mov ecx, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
setne bl
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46669c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4666bd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc