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

Disassembly:
push 0xffffffffffffffff
push 0x4d0595
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x50c620]
xor eax, esp
mov dword [esp + 0x538], eax
push esi
push edi
mov eax, dword [0x50c620]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
push 0xc
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
push str.Advapi32.dll
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00402ad0
mov dword [esp + 0x550], 0
mov eax, dword [0x50fda8]
test al, 1
jne 0x4193d8
or eax, 1
mov dword [0x50fda8], eax
mov byte [esp + 0x550], 1
mov dword [0x50fda4], 0
call fcn.00422cb0
push 0x4e2750
call fcn.004b177f
add esp, 4
mov byte [esp + 0x550], 0
lea eax, [esp + 0x28]
mov ecx, 0x50fda4
push eax
call fcn.00422e70
mov esi, eax
mov dword [esp + 0x550], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x419407
push dword [esp + 0x28]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
test esi, esi
jne 0x419429
xor al, al
jmp 0x419869
push str.Netapi32.dll
lea ecx, [esp + 0x10]
call fcn.00402470
mov dword [esp + 0x550], 2
mov eax, dword [0x50fda8]
test al, 1
jne 0x41947f
or eax, 1
mov dword [0x50fda8], eax
mov byte [esp + 0x550], 3
mov dword [0x50fda4], 0
call fcn.00422cb0
push 0x4e2750
call fcn.004b177f
add esp, 4
mov byte [esp + 0x550], 2
lea eax, [esp + 0xc]
mov ecx, 0x50fda4
push eax
call fcn.00422e70
mov edi, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x550], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x4194b2
push dword [esp + 0xc]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
test edi, edi
je 0x419422
push str.Secur32.dll
lea ecx, [esp + 0x530]
call fcn.00402470
mov dword [esp + 0x550], 4
lea eax, [esp + 0x52c]
push eax
call fcn.00422df0
mov ecx, eax
call fcn.00422e70
mov edi, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x550], 0xffffffff
cmp dword [esp + 0x540], 8
jb 0x41952b
push dword [esp + 0x52c]
call fcn.004b17b6
add esp, 4
xor eax, eax
mov dword [esp + 0x540], 7
mov dword [esp + 0x53c], 0
mov word [esp + 0x52c], ax
test edi, edi
je 0x419422
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateWellKnownSid
push esi
call edi
mov dword [esp + 0x70], eax
test eax, eax
je 0x419422
push str.LookupAccountNameW
push esi
call edi
mov dword [esp + 0x24], eax
test eax, eax
je 0x419422
push str.NetUserGetLocalGroups
push dword [esp + 0x44]
call edi
mov dword [esp + 0x64], eax
test eax, eax
je 0x419422
push str.NetApiBufferFree
push dword [esp + 0x44]
call edi
mov dword [esp + 0x48], eax
test eax, eax
je 0x419422
push str.EqualSid
push esi
call edi
mov dword [esp + 0x68], eax
test eax, eax
je 0x419422
push str.GetUserNameExW
push dword [esp + 0x50]
call edi
mov esi, eax
xor al, al
test esi, esi
je 0x419869
mov dword [esp + 0x44], eax
xor eax, eax
push 0x208
push eax
mov word [esp + 0x28c], ax
lea eax, [esp + 0x28e]
push eax
call fcn.004b5340
add esp, 0xc
mov dword [esp + 0x50], 0x104
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], 0
call fcn.00417660
mov dword [esp + 0x550], 5
lea ecx, [esp + 0x6c]
call fcn.00417fb0
test al, al
je 0x419653
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x288]
push eax
push 2
call esi
lea ecx, [esp + 0x6c]
mov esi, eax
call fcn.004182d0
test esi, esi
je 0x41984b
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x44
push eax
lea eax, [esp + 0x498]
push eax
push 0
push 0x1a
call dword [esp + 0x80]
lea eax, [esp + 0x58]
mov dword [esp + 0x4c], 0
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x58]
mov dword [esp + 0x64], 0
push eax
push 1
push 0
lea eax, [esp + 0x29c]
push eax
push 0
call dword [esp + 0x84]
test eax, eax
jne 0x41976e
mov edi, dword [esp + 0x4c]
xor esi, esi
cmp dword [esp + 0x70], esi
jbe 0x419768
lea esp, [esp]
xor eax, eax
push 0x208
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
call fcn.004b5340
add esp, 0xc
mov dword [esp + 0x64], 0x104
lea eax, [esp + 0x4dd]
mov byte [esp + 0x4dc], 0
push 0x43
push 0
push eax
call fcn.004b5340
add esp, 0xc
mov dword [esp + 0x60], 0x44
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x4ec]
push eax
push dword [edi]
push 0
call dword [esp + 0x40]
lea eax, [esp + 0x4dc]
push eax
lea eax, [esp + 0x498]
push eax
call dword [esp + 0x70]
test eax, eax
jne 0x419762
inc esi
add edi, 4
cmp esi, dword [esp + 0x70]
jb 0x4196d0
jmp 0x419768
mov al, 1
mov dword [esp + 0x44], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
test eax, eax
je 0x41977d
push eax
call esi
mov eax, dword [esp + 0x44]
test al, al
jne 0x41984d
xor eax, eax
mov dword [esp + 0x68], 0xf
mov word [esp + 0x524], ax
xorps xmm0, xmm0
mov dword [esp + 0x53e], eax
mov word [esp + 0x542], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x528]
movq qword [esp + 0x53a], xmm0
push eax
push 2
movdqu xmmword [esp + 0x532], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x41984b
lea ecx, [esp + 0x524]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4197e2
sub ecx, edx
sar ecx, 1
je 0x41984b
push str.NetUserGetInfo
push dword [esp + 0x44]
call edi
test eax, eax
je 0x41984b
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0
push ecx
push 1
lea ecx, [esp + 0x28c]
push ecx
lea ecx, [esp + 0x530]
push ecx
call eax
mov ecx, dword [esp + 0x48]
test eax, eax
jne 0x419842
mov eax, dword [esp + 0x44]
mov edx, 1
cmp dword [ecx + 0xc], 2
movzx eax, al
cmove eax, edx
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x419851
push ecx
call esi
jmp 0x419851
xor al, al
mov dword [esp + 0x44], eax
mov dword [esp + 0x550], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.004176e0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.004b0ff2
add esp, 0x548
ret