Function at 0x48fa40
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6d58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.004155a0
mov dword [ebp - 0x18], 0x10
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x48fa98
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x10
or eax, ecx
jge 0x48facb
push 0x10
lea ecx, [ebp - 0x14]
call fcn.00415500
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], 0x10
jge 0x48fadb
push 0x80070057
call fcn.004162a0
xor eax, eax
mov dword [esi - 0xc], 0x10
mov word [esi + 0x20], ax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x48fc24
mov eax, dword [ebp - 0x18]
test eax, eax
js 0x48fad1
cmp eax, dword [esi - 8]
jg 0x48fad1
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push 0x20
mov dword [ebp - 0x28], 0x20
call fcn.004bc57c
mov edi, eax
add esp, 4
test edi, edi
je 0x48fc4a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x48fb68
push edi
call fcn.004be903
add esp, 4
call ebx
jmp 0x48fc50
push dword [ebp - 0x28]
push 0
push edi
call fcn.004c1b90
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00495cf0
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x14]
push dword [ebp - 0x20]
test eax, eax
jne 0x48fbba
call fcn.00415570
push edi
call fcn.004be903
add esp, 4
call ebx
mov esi, dword [ebp - 0x14]
jmp 0x48fc50
call fcn.00415570
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x48fbda
push edi
call fcn.004be903
add esp, 4
call ebx
mov esi, dword [ebp - 0x14]
jmp 0x48fc50
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
call fcn.0049c170
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
mov dword [ebp - 0x24], 0
call fcn.004be903
add esp, 4
test esi, esi
jne 0x48fc1d
call ebx
mov esi, dword [ebp - 0x14]
jmp 0x48fc50
mov esi, dword [ebp - 0x14]
xor edi, edi
jmp 0x48fc52
push dword [esi - 8]
push esi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x48fad1
cmp eax, dword [esi - 8]
jg 0x48fad1
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48fc73
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret