Function at 0x411bd0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x451084]
xor eax, ebp
mov dword [ebp - 8], eax
test byte [ecx + 0x14], 1
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], esi
je 0x411caf
movzx edx, word [0x4476e4]
mov ecx, dword [str._VEB_]
mov word [ebp - 0x30], dx
movzx edx, word [0x4476ec]
mov word [ebp - 0x2a], dx
movzx edx, word [0x4476f4]
mov dword [ebp - 0x34], ecx
mov ecx, dword [str._IFO_]
mov word [ebp - 0x24], dx
movzx edx, word [0x4476fc]
mov dword [ebp - 0x2e], ecx
mov ecx, dword [str._WAR_]
mov dword [ebp - 0x28], ecx
mov ecx, dword [str._ERR_]
mov word [ebp - 0x1e], dx
movzx edx, word [0x447704]
mov dword [ebp - 0x22], ecx
mov ecx, dword [str._FAT_]
mov word [ebp - 0x18], dx
movzx edx, word [0x44770c]
lea eax, [eax + eax*2]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [str._NAN_]
lea eax, [ebp + eax*2 - 0x34]
mov dword [ebp - 0x16], ecx
mov word [ebp - 0x12], dx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411c81
sub eax, esi
dec edi
jmp 0x411c90
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411c90
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx], 5
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0x14]
test al, 2
je 0x411d04
push 0
call fcn.00431ab4
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.004320d0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
mov ecx, dword [ebx]
inc edx
push edx
add eax, 0x76c
push eax
add ecx, edi
push str.__d_02d_02d_02d_02d_02d_
push ecx
call fcn.00422434
add esp, 0x28
add dword [ebx], 0x10
jmp 0x411d51
test al, 4
je 0x411d51
push 0
call fcn.00431ab4
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.004320d0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [ebx]
inc ecx
push ecx
add edx, 0x76c
push edx
add eax, edi
push str.__d__02d__02d__02d:_02d:_02d_
push eax
call fcn.00422434
add esp, 0x28
add dword [ebx], 0x15
mov eax, dword [ebp - 0x78]
test byte [eax + 0x14], 0x10
je 0x411d89
mov ecx, dword [ebx]
lea esi, [eax + 0x120]
push esi
add ecx, edi
push str.__s_
push ecx
call fcn.00422434
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411d78
mov esi, dword [ebp - 0x7c]
sub eax, edx
add eax, 2
add dword [ebx], eax
mov edx, dword [ebp - 0x78]
test byte [edx + 0x14], 0x20
je 0x411dee
push 0x3f
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.00427a90
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
je 0x411dee
mov ecx, dword [ebx]
lea eax, [ebp - 0x74]
push eax
add ecx, edi
push str.__s_
push ecx
call fcn.00422434
lea eax, [ebp - 0x74]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411de0
sub eax, edx
add eax, 2
add dword [ebx], eax
mov edx, dword [ebp - 0x78]
test byte [edx + 0x14], 0x40
je 0x411e71
xor eax, eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x30]
push str.__u_
push eax
call fcn.00422434
lea eax, [ebp - 0x30]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411e36
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411e40
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x30]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411e60
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x7c]
sub eax, edx
add dword [ebx], eax
mov ecx, dword [ebp - 0x78]
test byte [ecx + 0x14], 0x80
je 0x411f01
xor eax, eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [ebp - 0x30]
push str.__u_
push edx
call fcn.00422434
lea eax, [ebp - 0x30]
add esp, 0xc
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411ec0
sub eax, esi
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411ed0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x30]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411ef0
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x7c]
sub eax, edx
add dword [ebx], eax
mov eax, dword [ebp - 0x78]
mov cx, word [eax + 0x14]
mov edx, pe_nt_image_headers32
and cx, dx
mov eax, edx
cmp cx, ax
jne 0x411f3e
mov ecx, dword [ebx]
push esi
add ecx, edi
push str.__s_
push ecx
call fcn.00422434
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411f30
sub eax, edx
add eax, 2
add dword [ebx], eax
mov edx, dword [ebp - 0x78]
mov ax, word [edx + 0x14]
mov ecx, 0x200
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x411faf
push 0x5c
push esi
call fcn.00433210
add esp, 8
test eax, eax
je 0x411f89
lea esi, [eax + 1]
mov eax, dword [ebx]
push esi
add eax, edi
push str.__s_
push eax
call fcn.00422434
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411f80
jmp 0x411fa8
mov ecx, dword [ebx]
push esi
add ecx, edi
push str.__s_
push ecx
call fcn.00422434
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411fa1
sub eax, edx
add eax, 2
add dword [ebx], eax
mov edx, dword [ebp - 0x78]
mov ax, word [edx + 0x14]
mov ecx, 0x400
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x41202b
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
push str.__d_
push ecx
mov byte [ebp - 0x20], 0
call fcn.00422434
lea eax, [ebp - 0x20]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411ff5
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x412000
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412020
sub eax, edx
add dword [ebx], eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00421cf1
mov esp, ebp
pop ebp
ret