Function at 0x411920
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45d4a0
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
test eax, eax
je 0x411c66
mov dword [ebx + 0x54], 2
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x411990
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
mov byte [esp + 0x34], 0
mov dword [esp + 0x1c], 0x50
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x411990
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebx + 4]
mov byte [esp + eax + 0x2f], 0
call fcn.0044ef8a
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10]
cmp ecx, 1
jne 0x411ad6
mov edx, dword [0x4790e8]
mov dword [esp + 0x10], edx
mov ecx, dword [eax]
mov dword [esp + 0x84], 0
mov edx, dword [ecx - 8]
test edx, edx
je 0x411a54
mov edx, dword [eax + 4]
mov eax, ecx
push edx
push eax
lea ecx, [esp + 0x18]
push str._s:_s
push ecx
call fcn.0044c0b3
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push 0
push 0
push eax
push 0
mov dword [esp + 0x28], eax
call fcn.0044f1bd
push eax
call fcn.0041d370
mov ebp, eax
add esp, 0x10
test ebp, ebp
jle 0x411a54
lea edi, [ebp + 1]
push edi
call fcn.0044f2f1
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push 0
call fcn.0044f1bd
push eax
call fcn.0041d370
add esp, 0x10
lea ecx, [esp + 0x10]
push esi
call fcn.0044ef8a
push esi
call fcn.0044f31a
add esp, 4
mov ecx, dword [0x4790e8]
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x10]
push edx
mov byte [esp + 0x88], 1
movsx edx, word [eax + 0x10]
mov ecx, dword [eax + 4]
push ecx
mov eax, ecx
push edx
push eax
lea ecx, [esp + 0x24]
push 0xb1f4
push ecx
call fcn.0044c0c6
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov ecx, dword [eax - 8]
push 0
push ecx
push eax
mov ecx, ebx
call fcn.00410c50
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 0
call fcn.0044ee01
lea ecx, [esp + 0x10]
mov dword [esp + 0x84], 0xffffffff
call fcn.0044ee01
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
test ecx, ecx
jne 0x411c11
mov edx, dword [ebx + 8]
mov byte [esp + 0x12], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0x10], cl
mov byte [esp + 0x13], 1
mov eax, dword [edx + 4]
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00411c80
mov edx, eax
mov eax, dword [ebx + 4]
or ecx, 0xffffffff
add esp, 8
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
mov esi, ecx
inc esi
test edx, edx
lea edi, [esi + 8]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
je 0x411b3d
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 4]
mov eax, dword [edx - 8]
lea ecx, [edi + eax + 1]
mov dword [esp + 0x14], ecx
mov edi, ecx
push edi
call fcn.0044f2f1
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebp], 4
mov byte [ebp + 1], 1
mov eax, dword [ebx + 8]
movsx eax, word [eax + 0x10]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp + 2], al
mov ecx, dword [ebx + 8]
movsx edx, word [ecx + 0x10]
and edx, 0x800000ff
jns 0x411b91
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp + 3], dl
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov edx, dword [ebx + 4]
mov ecx, esi
lea edi, [ebp + 8]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x411be6
mov ecx, dword [ebx + 8]
xor eax, eax
mov edx, dword [esp + 0x1c]
mov edi, dword [ecx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [edx + ebp + 8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebp
mov ecx, ebx
call fcn.00410c50
push ebp
call fcn.0044f31a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
cmp ecx, 2
jne 0x411c66
mov edx, dword [eax]
xor eax, eax
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x24], 5
mov dword [esp + 0x28], ecx
test eax, eax
mov word [esp + 0x2c], cx
mov ecx, eax
setne dl
inc edx
neg ecx
sbb cl, cl
mov byte [esp + 0x25], dl
and ecx, 2
xor edx, edx
test eax, eax
setne dl
add edx, 3
lea eax, [esp + 0x24]
mov byte [esp + 0x26], cl
push edx
push eax
mov ecx, ebx
call fcn.00410c50
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret