Function at 0x415bb8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x44d00c]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x104
push esi
mov esi, 4
push edi
mov edi, edx
mov dword [esp + 0x18], edi
test al, 0x10
je 0x415aac
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x10]
test al, 0x20
je 0x415ae1
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x10]
mov eax, ebx
and ecx, 0xf
mov ecx, dword [esp + ecx*4 + 0x40]
mov dword [ebx], ecx
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret
cmp eax, 0x11
ja case.0x415af1.4
movzx eax, byte [eax + 0x415ca4]
jmp dword [eax*4 + 0x415c88]
mov dword [ebx], 0x646e6957
mov dword [ebx + 4], 0x73776f
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
lea ecx, [ebx - 1]
test edx, edx
js 0x415b30
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x415b14
mov ax, word [0x4434b8]
mov word [ecx], ax
mov al, byte [0x4434ba]
jmp 0x415b48
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x415b30
mov ax, word [0x4434bc]
mov word [ecx], ax
mov al, byte [0x4434be]
mov byte [ecx + 2], al
mov eax, edx
shr eax, 8
movzx eax, al
push eax
movzx eax, dl
push eax
lea eax, [esp + 0x68]
push str._ver_d._d
push eax
call fcn.00401150
lea edx, [esp + 0x70]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x415b70
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415b80
mov ecx, edx
mov eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov esi, 2
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, 2
mov eax, ebx
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, 2
mov eax, ebx
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44f2d0]
mov eax, dword [eax + 0x37c]
mov dword [ebx], eax
mov eax, ebx
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov eax, ebx
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x30]
mov dword [ebx], eax
mov eax, ebx
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xe4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419170
mov esp, ebp
pop ebp
ret