Function at 0x10034b00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, edi
call sym._get_cookie_domain
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10034d43
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
lea esi, [eax + 0x1c]
cmp edx, esi
je 0x10034b77
mov dword [ebp + 0x10], edi
mov edi, esi
mov esi, ebx
mov ebx, edx
jmp 0x10034b46
mov ebx, dword [ebx]
cmp ebx, edi
je 0x10034b70
cmp dword [ebx + 0x10], esi
jb 0x10034b70
jne 0x10034b40
mov eax, dword [ebp - 0x14]
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 0x10034b40
mov edx, ebx
jmp 0x10034d28
mov ebx, esi
mov esi, edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10034d43
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x20
mov dword [ebp - 0x2c], eax
call eax
mov edx, eax
test eax, eax
je 0x10034d43
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 8]
cmp word [edi], 0
mov dword [ebp - 0x1c], edi
je 0x10034d6a
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x10034bb0
sub edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
sar edi, 1
mov dword [ebp - 0x30], edi
mov eax, dword [sym.imp.advapi32.dll_GetUserNameW]
lea edi, [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0
mov dword [esp + 4], edi
mov dword [esp], 0
mov dword [ebp - 0x28], eax
call eax
mov edx, dword [ebp - 0x20]
sub esp, 8
test eax, eax
jne 0x10034d38
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
jne 0x10034d38
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x30]
add eax, ebx
lea eax, [edx + eax + 8]
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov edx, dword [ebp - 0x34]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x10034d38
mov ecx, dword [ebp - 0x20]
mov eax, dword [0x100519c4]
mov dword [ebp - 0x30], edx
mov dword [ecx], eax
mov eax, dword [0x100519c8]
add ecx, 0xe
mov dword [ecx - 0xa], eax
mov eax, dword [0x100519cc]
mov dword [ecx - 6], eax
movzx eax, word [0x100519d0]
mov word [ecx - 2], ax
mov eax, dword [ebp - 0x28]
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
mov dword [esp + 4], edi
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
sub esp, 8
test eax, eax
je 0x10034d7d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x1c]
lea edi, [ecx + eax*2]
mov eax, 0x40
mov word [edi - 2], ax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._memcpy
add edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
xor edi, edi
test ebx, ebx
je 0x10034cdf
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
mov esi, edi
mov edi, dword [ebp - 0x14]
lea esi, cs:[esi]
movzx eax, word [edi + esi*2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towlower]
mov ecx, dword [ebp - 0x1c]
mov word [ecx + esi*2], ax
inc esi
cmp esi, ebx
jne 0x10034cc0
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [edx + 0x10], ebx
mov word [eax + ebx*2], cx
mov ecx, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x20]
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 0x10034d16
jmp 0x10034d50
mov eax, dword [eax]
cmp eax, esi
je 0x10034d50
cmp dword [eax + 0x10], ebx
ja 0x10034d10
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 - 0x18]
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 - 0x30], 0
mov dword [ebp - 0x24], 0
jmp 0x10034bc4
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x14]
jmp 0x10034d3e