Function at 0x416e51
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x425124]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x618], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x614], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0x608], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x61c], eax
mov esi, edx
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x60c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x610], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x624], esi
mov dword [ebp - 0x628], eax
call fcn.0041e3fe
test eax, eax
je 0x4170b5
mov ecx, dword [edi + 8]
call fcn.0041bcfd
test eax, eax
je 0x4170b5
mov ecx, dword [edi + 8]
call fcn.0040b54c
test eax, eax
jne 0x4170b5
push dword [esi + 8]
mov ecx, dword [edi + 0x14]
call fcn.0041c698
mov ecx, dword [edi + 0x10]
shr eax, 1
push eax
push dword [edi + 0x14]
call fcn.0041c698
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 4]
shr eax, 1
push eax
call fcn.0041eb3c
mov esi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0x60c], eax
test esi, esi
jne 0x416f8f
push dword [edi + 4]
mov ecx, 0x9dd
call fcn.0041b2d7
push eax
lea eax, [ebp - 0x20c]
push 0xfe
push eax
call fcn.0040719d
push 2
pop ebx
push ebx
call fcn.004208bb
add esp, 0x14
lea edx, [ebp - 0x20c]
mov ecx, eax
call fcn.0041bd93
push ebx
call fcn.004208bb
pop ecx
mov edx, 0x20001
mov ecx, eax
call fcn.0041b108
mov eax, dword [ebp - 0x60c]
test eax, eax
jle 0x416f78
movzx eax, ax
or eax, 0x80070000
cmp dword [edi + 0x1c14], 0
jne 0x417878
mov eax, 0x80004005
jmp 0x417878
cmp eax, 0x4c3
je 0x41707a
xor esi, esi
xor ebx, ebx
inc esi
cmp eax, 0x50010001
je 0x416fb5
cmp eax, 0xa0010001
je 0x41707a
mov ecx, esi
jmp 0x416fb7
mov ecx, ebx
mov eax, dword [ebp - 0x61c]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
call fcn.0041bcfd
test eax, eax
je 0x417876
mov ecx, dword [ebp - 0x610]
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x624]
mov dword [ecx], eax
mov eax, dword [ebp - 0x614]
mov dword [eax], esi
cmp dword [edx + 0xc], ebx
je 0x41706a
cmp dword [edi + 0x1bf0], ebx
jne 0x417876
push dword [ecx]
mov ecx, 0x1ab
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
mov ebx, dword [ebp - 0x628]
add esp, 0x14
mov edx, 0xfe
mov ecx, ebx
call fcn.0041c1f3
test eax, eax
je 0x416f85
mov ecx, ebx
call fcn.0041bcfd
test eax, eax
jne 0x41705d
mov ecx, 0x20a
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x608]
mov dword [ecx], ebx
jmp 0x41786e
mov ecx, dword [ebp - 0x608]
mov eax, dword [edi + 0xc]
mov dword [ecx], eax
jmp 0x41786e
mov eax, dword [ebp - 0x61c]
xor ebx, ebx
push 2
mov dword [eax], ebx
call fcn.004208bb
pop ecx
mov edx, 0x20001
mov ecx, eax
call fcn.0041b108
mov eax, dword [ebp - 0x60c]
test eax, eax
jle 0x4170aa
movzx eax, ax
or eax, 0x80070000
cmp dword [edi + 0x1c14], ebx
jmp 0x416f7f
mov ecx, dword [edi + 4]
call fcn.0041e3fe
xor ecx, ecx
inc ecx
test eax, eax
jne 0x417395
cmp word [edi + 0x1be8], cx
jne 0x417395
push dword [esi + 8]
mov ecx, dword [edi + 0x14]
call fcn.0041c698
mov ecx, dword [edi + 0x10]
shr eax, 1
push eax
push dword [edi + 0x14]
call fcn.0041c698
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 4]
shr eax, 1
push eax
call fcn.0041eb3c
mov esi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0x60c], eax
test esi, esi
je 0x416f1b
mov esi, eax
cmp esi, 0x4c3
je 0x417356
xor ebx, ebx
cmp esi, 0x50010001
je 0x41713d
cmp esi, 0xa0010001
je 0x417356
xor esi, esi
inc esi
mov ecx, esi
jmp 0x417142
xor esi, esi
mov ecx, ebx
inc esi
mov eax, dword [ebp - 0x61c]
mov dword [eax], ecx
mov ecx, dword [edi + 0x10]
call fcn.0041bcfd
test eax, eax
jne 0x417269
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], 0xfe
push eax
push dword [edi + 0x10]
push 2
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
jne 0x4171a2
mov ecx, 0x90
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x41709e
mov eax, dword [ebp - 0x614]
mov ecx, dword [ebp - 0x610]
mov dword [eax], esi
mov eax, dword [edi + 0x10]
mov dword [ecx], eax
mov ecx, 0x1ad
push eax
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
add esp, 0x14
cmp dword [edi + 0x1bf0], ebx
jne 0x417269
mov eax, dword [ebp - 0x610]
mov ecx, 0x1ab
push dword [eax]
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
mov ecx, dword [edi + 0xc]
add esp, 0x14
call fcn.0041c698
mov ecx, dword [edi + 0xc]
shr eax, 1
mov edx, eax
call fcn.0041c1f3
test eax, eax
je 0x416f85
cmp dword [edi + 0x1bf0], ebx
jne 0x417254
mov ecx, dword [edi + 0xc]
call fcn.0041bcfd
test eax, eax
jne 0x417254
mov ecx, 0x20a
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x608]
mov eax, dword [edi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x618]
mov dword [eax], esi
jmp 0x41726f
mov ecx, dword [ebp - 0x608]
mov eax, dword [ebp - 0x610]
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x620], edx
mov dword [eax], edx
test byte [edi + 0x1be8], 0x10
je 0x417340
mov edx, dword [ebp - 0x624]
cmp dword [edx + 0xc], ebx
je 0x417349
push dword [ebp - 0x620]
mov ecx, 0x1ab
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
add esp, 0x14
lea ecx, [edi + 0xc]
mov edx, 0x1fc
call fcn.0041c5b2
test eax, eax
jne 0x4172ee
call fcn.0041afe7
push 2
call fcn.004208bb
pop ecx
mov edx, 0x20001
mov ecx, eax
call fcn.0041b108
jmp 0x417197
lea ebx, [edi + 0xc]
mov ecx, dword [ebx]
call fcn.0041c698
mov ecx, dword [ebx]
shr eax, 1
mov edx, eax
call fcn.0041c1f3
test eax, eax
je 0x416f85
mov ecx, dword [ebx]
call fcn.0041bcfd
test eax, eax
jne 0x417336
mov ecx, 0x20a
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x608]
jmp 0x417347
cmp dword [ecx], ebx
jne 0x417349
mov eax, dword [edi + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x614]
mov dword [eax], esi
jmp 0x41786e
mov eax, dword [ebp - 0x61c]
xor ebx, ebx
push 2
mov dword [eax], ebx
call fcn.004208bb
pop ecx
mov edx, 0x20001
mov ecx, eax
call fcn.0041b108
test esi, esi
jle 0x417381
movzx esi, si
or esi, 0x80070000
cmp dword [edi + 0x1c14], ebx
jne 0x41738e
mov esi, 0x80004005
mov eax, esi
jmp 0x417878
push 2
pop ebx
cmp word [edi + 0x1be8], bx
jne 0x4175e4
push dword [esi + 8]
mov ecx, dword [edi + 0x14]
call fcn.0041c698
mov ecx, dword [edi + 0x10]
shr eax, 1
push eax
push dword [edi + 0x14]
call fcn.0041c698
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 4]
shr eax, 1
push eax
call fcn.0041eb3c
mov esi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0x60c], eax
test esi, esi
jne 0x417402
push dword [edi + 4]
mov ecx, 0x9dd
call fcn.0041b2d7
push eax
lea eax, [ebp - 0x20c]
push 0xfe
push eax
call fcn.0040719d
jmp 0x416f3d
cmp eax, 0x4c3
je 0x4175a0
xor ebx, ebx
cmp eax, 0x50010001
je 0x417428
cmp eax, 0xa0010001
je 0x4175a0
xor esi, esi
inc esi
mov ecx, esi
jmp 0x41742d
xor esi, esi
mov ecx, ebx
inc esi
mov eax, dword [ebp - 0x61c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x610]
mov ecx, dword [edi + 0x10]
mov dword [eax], ecx
test byte [edi + 0x1be8], 0x10
je 0x4174ed
mov edx, dword [ebp - 0x624]
lea eax, [edi + 0xc]
mov dword [ebp - 0x60c], eax
cmp dword [edx + 0xc], ebx
je 0x4174e6
push ecx
mov ecx, 0x1ab
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
add esp, 0x14
lea ecx, [edi + 0xc]
mov edx, 0x1fc
call fcn.0041c5b2
test eax, eax
je 0x4172d0
mov ecx, dword [edi + 0xc]
call fcn.0041c698
mov ecx, dword [edi + 0xc]
shr eax, 1
mov edx, eax
call fcn.0041c1f3
test eax, eax
je 0x416f85
mov ecx, dword [edi + 0xc]
call fcn.0041bcfd
test eax, eax
jne 0x4174e0
mov ecx, 0x20a
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov eax, dword [ebp - 0x60c]
mov eax, dword [eax]
jmp 0x417585
cmp dword [edi + 0x1bf0], ebx
jne 0x417595
mov ecx, dword [edi + 0x14]
call fcn.0041bcfd
test eax, eax
je 0x417515
mov ecx, dword [ebp - 0x608]
mov eax, dword [edi + 0x14]
mov dword [ecx], eax
jmp 0x417595
mov eax, dword [ebp - 0x610]
mov ecx, 0x1ab
push dword [eax]
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
mov ecx, dword [edi + 0xc]
add esp, 0x14
call fcn.0041c698
mov ecx, dword [edi + 0xc]
shr eax, 1
mov edx, eax
call fcn.0041c1f3
test eax, eax
je 0x416f85
mov ecx, dword [edi + 0xc]
call fcn.0041bcfd
test eax, eax
jne 0x417582
mov ecx, 0x20a
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x608]
mov dword [ecx], eax
mov eax, dword [ebp - 0x618]
mov dword [eax], esi
mov eax, dword [ebp - 0x614]
jmp 0x417874
mov eax, dword [ebp - 0x61c]
xor ebx, ebx
mov ecx, 0x1fc
mov dword [eax], ebx
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
call fcn.0041aedf
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
jmp 0x417098
mov ecx, dword [edi + 4]
call fcn.0041bcfd
test eax, eax
je 0x417876
test byte [edi + 0x1be8], 8
je 0x417876
push dword [esi + 8]
mov ecx, dword [edi + 0x14]
call fcn.0041c698
mov ecx, dword [edi + 0x10]
shr eax, 1
push eax
push dword [edi + 0x14]
call fcn.0041c698
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 4]
shr eax, 1
push eax
call fcn.0041eb3c
mov esi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebp - 0x620], eax
test esi, esi
jne 0x41768d
push dword [edi + 4]
mov ecx, 0x9dd
call fcn.0041b2d7
push eax
lea eax, [ebp - 0x20c]
push 0xfe
push eax
call fcn.0040719d
push ebx
call fcn.004208bb
add esp, 0x14
lea edx, [ebp - 0x20c]
mov ecx, eax
call fcn.0041bd93
push ebx
call fcn.004208bb
pop ecx
mov edx, 0x20001
mov ecx, eax
call fcn.0041b108
mov eax, dword [ebp - 0x620]
jmp 0x416f6c
cmp eax, 0x4c3
je 0x417967
xor ebx, ebx
cmp eax, 0x50010001
je 0x4176b3
cmp eax, 0xa0010001
je 0x417967
xor esi, esi
inc esi
mov ecx, esi
jmp 0x4176b8
xor esi, esi
mov ecx, ebx
inc esi
mov eax, dword [ebp - 0x61c]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
call fcn.0040b54c
mov ecx, dword [edi + 8]
test eax, eax
je 0x417761
mov eax, dword [ebp - 0x610]
mov dword [eax], ecx
lea eax, [edi + 0x818]
push eax
mov ecx, 0xca
call fcn.0041b2d7
push eax
lea eax, [ebp - 0x604]
push 0x1fc
push eax
call fcn.0040719d
push esi
call fcn.004208bb
add esp, 0x14
lea edx, [ebp - 0x604]
mov ecx, eax
call fcn.0041bd93
test byte [edi + 0x1be8], 0x10
je 0x417749
mov ecx, dword [edi + 0xc]
call fcn.0041bcfd
test eax, eax
je 0x417749
mov ecx, 0xfc
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov eax, dword [ebp - 0x614]
mov dword [eax], esi
mov eax, dword [ebp - 0x618]
mov dword [eax], esi
mov eax, dword [ebp - 0x60c]
jmp 0x41777b
call fcn.0041bcfd
test eax, eax
je 0x41777d
mov ecx, dword [ebp - 0x610]
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x614]
mov dword [eax], esi
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 8]
push ebx
push esi
call fcn.0041bd0c
mov cx, word [edi + 0x1be8]
and cx, 0x10
movzx ecx, cx
test eax, eax
je 0x417889
test cx, cx
je 0x4177d0
mov ecx, dword [edi + 8]
call fcn.0041bcfd
test eax, eax
je 0x4177c8
mov edx, dword [ebp - 0x624]
cmp dword [edx + 0xc], ebx
je 0x4177c8
mov ecx, dword [edi + 8]
call fcn.0040b54c
test eax, eax
je 0x4177f2
mov ebx, dword [edi + 0xc]
jmp 0x41785c
cmp dword [edi + 0x1bf0], ebx
jne 0x417864
mov eax, dword [ebp - 0x60c]
cmp dword [eax], ebx
jne 0x417864
mov ecx, dword [edi + 8]
call fcn.0041bcfd
test eax, eax
je 0x417864
mov eax, dword [ebp - 0x610]
mov ecx, 0x1ab
push dword [eax]
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
mov ebx, dword [ebp - 0x628]
add esp, 0x14
mov edx, 0xfe
mov ecx, ebx
call fcn.0041c1f3
test eax, eax
je 0x416f85
mov ecx, ebx
call fcn.0041bcfd
test eax, eax
jne 0x41785c
mov ecx, 0x20a
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x608]
mov dword [ecx], ebx
mov eax, dword [ebp - 0x614]
mov ecx, esi
mov dword [eax], ecx
mov eax, dword [ebp - 0x618]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004201e0
leave
ret 0x1c
test cx, cx
je 0x4178ad
mov ecx, dword [edi + 8]
call fcn.0041bcfd
test eax, eax
je 0x4178a5
mov edx, dword [ebp - 0x624]
cmp dword [edx + 0xc], ebx
jne 0x4178f0
mov ebx, dword [edi + 0xc]
jmp 0x41795a
mov ecx, dword [edi + 0x14]
call fcn.0041bcfd
test eax, eax
je 0x4178c4
mov ecx, dword [ebp - 0x608]
jmp 0x417344
cmp dword [edi + 0x1bf0], ebx
jne 0x417349
mov ecx, dword [edi + 8]
call fcn.0041bcfd
test eax, eax
je 0x417349
mov ecx, dword [edi + 8]
call fcn.0040b54c
test eax, eax
jne 0x417349
mov eax, dword [ebp - 0x610]
mov ecx, 0x1ab
push dword [eax]
call fcn.0041b2d7
push eax
push ebx
push esi
push esi
call fcn.004208bb
pop ecx
push eax
call fcn.0041bfde
mov ebx, dword [ebp - 0x628]
add esp, 0x14
mov edx, 0xfe
mov ecx, ebx
call fcn.0041c1f3
test eax, eax
je 0x416f85
mov ecx, ebx
call fcn.0041bcfd
test eax, eax
jne 0x41795a
mov ecx, 0x20a
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x608]
mov dword [ecx], ebx
jmp 0x417349
mov eax, dword [ebp - 0x61c]
xor ebx, ebx
mov ecx, 0x1fc
mov dword [eax], ebx
call fcn.0041b2d7
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
call fcn.0041aedf
push 2
mov esi, eax
call fcn.004208bb
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041bd93
mov eax, dword [ebp - 0x620]
jmp 0x41709e