Function at 0x491610
Capabilities:
Get hostname
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de429
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x540
mov eax, dword [0x50e008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
xor eax, eax
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], 0
lea ecx, [ebp - 0x538]
push str.Advapi32.dll
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], 7
mov word [ebp - 0x538], ax
call fcn.00403d60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x538]
push eax
call fcn.00496540
mov ecx, eax
call fcn.00496600
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x538]
call fcn.00403cf0
test esi, esi
jne 0x4916cd
xor al, al
jmp 0x491ad0
push 0xc
xor eax, eax
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], 0
lea ecx, [ebp - 0x550]
push str.Netapi32.dll
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], 7
mov word [ebp - 0x550], ax
call fcn.00403d60
mov dword [ebp - 4], 1
lea eax, [ebp - 0x550]
push eax
call fcn.00496540
mov ecx, eax
call fcn.00496600
mov edi, eax
mov dword [ebp - 0x51c], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x550]
call fcn.00403cf0
test edi, edi
je 0x4916c6
push 0xb
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
push str.Secur32.dll
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00403d60
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
call fcn.00496540
mov ecx, eax
call fcn.00496600
mov edi, eax
mov dword [ebp - 0x510], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403cf0
test edi, edi
je 0x4916c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateWellKnownSid
push esi
call edi
mov dword [ebp - 0x4ec], eax
test eax, eax
je 0x4916c6
push str.LookupAccountNameW
push esi
call edi
mov dword [ebp - 0x520], eax
test eax, eax
je 0x4916c6
push str.NetUserGetLocalGroups
push dword [ebp - 0x51c]
call edi
mov dword [ebp - 0x4f4], eax
test eax, eax
je 0x4916c6
push str.NetApiBufferFree
push dword [ebp - 0x51c]
call edi
mov dword [ebp - 0x514], eax
test eax, eax
je 0x4916c6
push str.EqualSid
push esi
call edi
mov dword [ebp - 0x4f8], eax
test eax, eax
je 0x4916c6
push str.GetUserNameExW
push dword [ebp - 0x510]
call edi
mov esi, eax
xor al, al
test esi, esi
je 0x491ad0
push 0x20a
mov dword [ebp - 0x518], eax
lea eax, [ebp - 0x2d8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4fc], 0x104
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4f0], 0
call fcn.0048ff20
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x4f0]
call fcn.00490750
test al, al
je 0x4918c2
lea eax, [ebp - 0x4fc]
push eax
lea eax, [ebp - 0x2d8]
push eax
push 2
call esi
lea ecx, [ebp - 0x4f0]
mov esi, eax
call fcn.00490a70
test esi, esi
je 0x491ab0
lea eax, [ebp - 0x500]
mov dword [ebp - 0x500], 0x44
push eax
lea eax, [ebp - 0xc8]
push eax
push 0
push 0x1a
call dword [ebp - 0x4ec]
lea eax, [ebp - 0x504]
mov dword [ebp - 0x510], 0
push eax
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4ec], 0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x510]
mov dword [ebp - 0x504], 0
push eax
push 1
push 0
lea eax, [ebp - 0x2d8]
push eax
push 0
call dword [ebp - 0x4f4]
test eax, eax
jne 0x4919e9
mov edi, dword [ebp - 0x510]
xor esi, esi
cmp dword [ebp - 0x4ec], esi
jbe 0x4919e3
nop dword [eax + eax]
push 0x20a
lea eax, [ebp - 0x4e8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4f4], 0x104
lea eax, [ebp - 0x80]
push 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x508], 0x44
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x4f4]
push eax
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [edi]
push 0
call dword [ebp - 0x520]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xc8]
push eax
call dword [ebp - 0x4f8]
test eax, eax
jne 0x4919db
inc esi
add edi, 4
cmp esi, dword [ebp - 0x4ec]
jb 0x491950
jmp 0x4919e3
mov al, 1
mov dword [ebp - 0x518], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ebp - 0x510]
mov esi, dword [ebp - 0x514]
test eax, eax
je 0x4919fc
push eax
call esi
mov eax, dword [ebp - 0x518]
test al, al
jne 0x491ab2
lea eax, [ebp - 0x4f8]
mov dword [ebp - 0x4f8], 0xf
push eax
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
push 2
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x491ab0
lea ecx, [ebp - 0x34]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491a40
sub ecx, edx
sar ecx, 1
je 0x491ab0
push str.NetUserGetInfo
push dword [ebp - 0x51c]
call edi
test eax, eax
je 0x491ab0
lea ecx, [ebp - 0x514]
mov dword [ebp - 0x514], 0
push ecx
push 1
lea ecx, [ebp - 0x2d8]
push ecx
lea ecx, [ebp - 0x34]
push ecx
call eax
mov ecx, dword [ebp - 0x514]
test eax, eax
jne 0x491aa7
mov eax, dword [ebp - 0x518]
mov edx, 1
cmp dword [ecx + 0xc], 2
movzx eax, al
cmove eax, edx
mov dword [ebp - 0x518], eax
test ecx, ecx
je 0x491ab8
push ecx
call esi
jmp 0x491ab8
xor al, al
mov dword [ebp - 0x518], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f0]
call fcn.0048ffa0
mov eax, dword [ebp - 0x518]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c4853
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret