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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x1fe
mov dword [ebp - 0x220], eax
xor edi, edi
lea eax, [ebp - 0x202]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x21c], ecx
mov word [ebp - 0x204], dx
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x204]
push edx
mov dword [ebp - 0x228], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x208]
push ecx
push edi
lea edx, [ebp - 0x20c]
push edx
push edi
lea eax, [ebp - 0x204]
push eax
push edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x208], 0xff
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c9dab
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x4c9dab
cmp dword [ebp - 0x208], edi
je 0x4c9dab
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.004e5420
mov ebx, eax
mov eax, dword [ebp - 0x20c]
lea ecx, [eax + eax]
push ecx
push edi
push ebx
mov dword [ebp - 0x210], ebx
call fcn.004e8ba0
mov eax, dword [ebp - 0x208]
add esp, 0x10
cmp eax, edi
je 0x4c9c47
xor ecx, ecx
add eax, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e5420
mov ecx, dword [ebp - 0x208]
lea edx, [ecx + ecx]
push edx
push edi
push eax
mov dword [ebp - 0x214], eax
call fcn.004e8ba0
add esp, 0x10
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x208]
push ecx
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
lea ecx, [ebp - 0x204]
push ecx
push 0
call esi
cmp eax, 1
jne 0x4c9d8a
push ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
lea ebx, [eax + eax*2]
lea ebx, [ebx*4 + 0x1c]
mov dword [ebp - 0x218], eax
test ebx, ebx
je 0x4c9cca
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e5420
mov edi, eax
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.004e8ba0
add esp, 0x10
push 1
push 0x51ce90
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, eax
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c9ce2
movzx ecx, byte [esi + 2]
sub eax, edx
movzx edx, byte [esi + 3]
shl ecx, 8
add ecx, edx
movzx edx, byte [esi + 4]
shl ecx, 8
add ecx, edx
movzx edx, byte [esi + 5]
shl ecx, 8
add ecx, edx
push ecx
sar eax, 1
lea eax, [edi + eax*2]
push 0x51cea0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
add esp, 0xc
add ebx, eax
cmp dword [ebp - 0x218], esi
jbe 0x4c9d5e
nop
mov ecx, dword [ebp - 0x210]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov edx, dword [eax]
push edx
lea eax, [edi + ebx*2]
push str.__lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
inc esi
add esp, 0xc
add ebx, eax
cmp esi, dword [ebp - 0x218]
jb 0x4c9d30
mov esi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x220]
push 0x110
call fcn.004c2ef0
add esp, 4
test edi, edi
je 0x4c9d84
push edi
call fcn.004e577a
add esp, 4
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4c9d9d
push eax
call fcn.004e577a
add esp, 4
test ebx, ebx
je 0x4c9daa
push ebx
call fcn.004e577a
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e4746
mov esp, ebp
pop ebp
ret