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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.00468a00
mov dword [ebp - 8], 0x10
call fcn.00468bd0
mov ecx, eax
test ecx, ecx
je 0x49b35d
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov edx, 1
sub edx, dword [eax + 0xc]
sub ecx, 0x10
or edx, ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jge 0x49b1af
push 0x10
lea ecx, [ebp - 0x1c]
call fcn.00468e20
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 8], 0x10
jl 0x49b367
xor eax, eax
mov dword [esi - 0xc], 0x10
push ebx
mov word [esi + 0x20], ax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x49b30a
mov eax, dword [ebp - 8]
test eax, eax
js 0x49b367
cmp eax, dword [esi - 8]
jg 0x49b367
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push 0x20
mov dword [ebp - 0x18], 0x20
call fcn.0053ac46
mov edi, eax
add esp, 4
test edi, edi
je 0x49b328
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
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 0x49b24f
push edi
call fcn.0053c676
add esp, 4
call ebx
jmp 0x49b32e
push dword [ebp - 0x18]
push 0
push edi
call fcn.0053e0b0
add esp, 0xc
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
call fcn.004ce6a0
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x10]
test eax, eax
jne 0x49b2a1
call fcn.00468fc0
push edi
call fcn.0053c676
add esp, 4
call ebx
mov esi, dword [ebp - 0x1c]
jmp 0x49b32e
call fcn.00468fc0
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x49b2c1
push edi
call fcn.0053c676
add esp, 4
call ebx
mov esi, dword [ebp - 0x1c]
jmp 0x49b32e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push edi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov esi, eax
call fcn.004be550
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
mov dword [ebp - 0x14], 0
call fcn.0053c676
add esp, 4
test esi, esi
jne 0x49b303
call ebx
mov esi, dword [ebp - 0x1c]
jmp 0x49b32e
mov esi, dword [ebp - 0x1c]
xor edi, edi
jmp 0x49b330
push dword [esi - 8]
push esi
call fcn.0053eeff
add esp, 8
test eax, eax
js 0x49b367
cmp eax, dword [esi - 8]
jg 0x49b367
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
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
pop ebx
test ecx, ecx
jg 0x49b34b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00468960
push 0x80070057
call fcn.00468960
int3