Function at 0x100339e
Capabilities:
Get domain information
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101d774]
push ebx
push esi
push edi
push dword [0x101d788]
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], 0x104
mov dword [ebp - 0x218], edi
call fcn.0100a1f5
lea eax, [ebp - 0x214]
push eax
push 1
call fcn.01010581
cmp eax, edi
je 0x10033e9
push eax
call fcn.0101004c
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, eax
lea eax, [ebp - 0x218]
push eax
push 1
push edi
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
push 0x101c1c8
push 0x13
call fcn.010101a1
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push eax
push 0x101c180
push 9
add esi, 5
call fcn.010101a1
mov eax, dword [ebp - 0x214]
push dword [eax + 0xc]
push edi
push dword [0x101c1cc]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push str.__.ws_Fws_r_n
call fcn.0100fc41
add esp, 0x14
cmp ebx, edi
je 0x1003494
lea eax, [ebp - 0x210]
push eax
push edi
push dword [0x101c1d4]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7bc]
call fcn.0100fc41
add esp, 0x14
mov eax, dword [ebp - 0x214]
push dword [eax + 0x10]
push edi
push dword [0x101c1dc]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7bc]
call fcn.0100fc41
add esp, 0x14
call fcn.0100ffa6
push edi
push dword [0x101c25c]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push str.__.ws_r_n
call fcn.0100fc41
mov eax, dword [ebp - 0x214]
add esp, 0x10
push 1
push dword [eax + 0x20]
call fcn.01006bee
push dword [0x101c1c4]
push edi
push dword [0x101c1e4]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push str.__.ws__0.31ws_r_n
call fcn.0100fc41
add esp, 0x14
call fcn.0100ffa6
mov eax, dword [ebp - 0x214]
push dword [eax + 0x14]
push edi
push dword [0x101c1f4]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7bc]
call fcn.0100fc41
add esp, 0x14
cmp dword [ebp - 0x220], edi
jne 0x1003576
mov eax, dword [ebp - 0x218]
push dword [eax + 0xc]
push edi
push dword [0x101c204]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7bc]
call fcn.0100fc41
add esp, 0x14
push dword [ebp - 0x218]
call sub.NETAPI32.dll_DsRoleFreeMemory
mov eax, dword [ebp - 0x214]
push dword [eax + 0x84]
push edi
push dword [0x101c1fc]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7bc]
call fcn.0100fc41
add esp, 0x14
call fcn.0100ffa6
mov eax, dword [ebp - 0x214]
push dword [eax + 0x24]
push edi
push dword [0x101c20c]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7c4]
call fcn.0100fc41
mov eax, dword [ebp - 0x214]
add esp, 0x14
push dword [eax + 0x2c]
push edi
push dword [0x101c214]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7c4]
call fcn.0100fc41
mov eax, dword [ebp - 0x214]
add esp, 0x14
push dword [eax + 0x28]
push edi
push dword [0x101c21c]
push esi
call fcn.0100fc80
push eax
push esi
push edi
push dword [0x101d7c8]
call fcn.0100fc41
add esp, 0x14
push dword [ebp - 0x214]
call sub.NETAPI32.dll_NetApiBufferFree
call fcn.0100ffba
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f4dc
leave
ret