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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5322a8]
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.004e7d90
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x204]
push edx
mov dword [ebp - 0x228], pe_nt_image_headers32
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 0x4c869b
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x4c869b
cmp dword [ebp - 0x208], edi
je 0x4c869b
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.004e4240
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.004e7d90
mov eax, dword [ebp - 0x208]
add esp, 0x10
cmp eax, edi
je 0x4c8537
xor ecx, ecx
add eax, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e4240
mov ecx, dword [ebp - 0x208]
lea edx, [ecx + ecx]
push edx
push edi
push eax
mov dword [ebp - 0x214], eax
call fcn.004e7d90
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 0x4c867a
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 0x4c85ba
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e4240
mov edi, eax
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.004e7d90
add esp, 0x10
push 1
push 0x51d608
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 0x4c85d2
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 0x51d618
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
add esp, 0xc
add ebx, eax
cmp dword [ebp - 0x218], esi
jbe 0x4c864e
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 0x4c8620
mov esi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x220]
push 0x110
call fcn.004c0b90
add esp, 4
test edi, edi
je 0x4c8674
push edi
call fcn.004e424b
add esp, 4
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4c868d
push eax
call fcn.004e424b
add esp, 4
test ebx, ebx
je 0x4c869a
push ebx
call fcn.004e424b
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e3946
mov esp, ebp
pop ebp
ret