Function at 0x6c135280
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov ecx, edi
call sym._get_cookie_domain
mov dword [ebp - 0x30], eax
test eax, eax
je 0x6c1354c3
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x1c]
lea esi, [eax + 0x1c]
cmp edx, esi
je 0x6c1352f7
mov dword [ebp + 0x10], edi
mov edi, esi
mov esi, ebx
mov ebx, edx
jmp 0x6c1352c6
mov ebx, dword [ebx]
cmp ebx, edi
je 0x6c1352f0
cmp dword [ebx + 0x10], esi
jb 0x6c1352f0
jne 0x6c1352c0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsnicmp]
test eax, eax
jne 0x6c1352c0
mov edx, ebx
jmp 0x6c1354a8
mov ebx, esi
mov esi, edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x6c1354c3
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x20
mov dword [ebp - 0x44], eax
call eax
mov edx, eax
test eax, eax
je 0x6c1354c3
mov eax, dword [ebp - 0x30]
mov edi, dword [eax + 8]
cmp word [edi], 0
mov dword [ebp - 0x34], edi
je 0x6c1354ea
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x6c135330
sub edi, dword [ebp - 0x34]
mov dword [ebp - 0x3c], edi
sar edi, 1
mov dword [ebp - 0x48], edi
mov eax, dword [sym.imp.advapi32.dll_GetUserNameW]
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], edi
mov dword [esp], 0
mov dword [ebp - 0x40], eax
call eax
mov edx, dword [ebp - 0x38]
sub esp, 8
test eax, eax
jne 0x6c1354b8
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
jne 0x6c1354b8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x48]
add eax, ebx
lea eax, [edx + eax + 8]
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call eax
mov edx, dword [ebp - 0x4c]
test eax, eax
mov dword [ebp - 0x38], eax
je 0x6c1354b8
mov ecx, dword [ebp - 0x38]
mov eax, dword [0x6c15198c]
mov dword [ebp - 0x48], edx
mov dword [ecx], eax
mov eax, dword [0x6c151990]
add ecx, 0xe
mov dword [ecx - 0xa], eax
mov eax, dword [0x6c151994]
mov dword [ecx - 6], eax
movzx eax, word [0x6c151998]
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x40]
mov dword [esp], ecx
mov dword [ebp - 0x44], ecx
mov dword [esp + 4], edi
call eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
sub esp, 8
test eax, eax
je 0x6c1354fd
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x34]
lea edi, [ecx + eax*2]
mov eax, 0x40
mov word [edi - 2], ax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._memcpy
add edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edi
xor edi, edi
test ebx, ebx
je 0x6c13545f
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], esi
mov esi, edi
mov edi, dword [ebp - 0x2c]
lea esi, [esi]
nop
movzx eax, word [edi + esi*2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towlower]
mov ecx, dword [ebp - 0x34]
mov word [ecx + esi*2], ax
inc esi
cmp esi, ebx
jne 0x6c135440
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [edx + 0x10], ebx
mov word [eax + ebx*2], cx
mov ecx, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x14], ecx
mov dword [edx + 8], eax
lea eax, [edx + 0x18]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x1c]
cmp eax, esi
jne 0x6c135496
jmp 0x6c1354d0
mov eax, dword [eax]
cmp eax, esi
je 0x6c1354d0
cmp dword [eax + 0x10], ebx
ja 0x6c135490
mov dword [edx], eax
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov dword [ecx], edx
mov dword [eax + 4], edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edx
call ebx
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x30]
mov dword [edx], esi
mov eax, dword [ecx + 0x20]
mov dword [edx + 4], eax
mov dword [eax], edx
mov eax, edx
mov dword [ecx + 0x20], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], 0
jmp 0x6c135344
mov eax, dword [ebp - 0x38]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
jmp 0x6c1354be