Function at 0x1003465
Capabilities:
Get domain information
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101d78c]
push ebx
push esi
push edi
push dword [0x101d7a0]
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], 0x104
mov dword [ebp - 0x218], edi
call fcn.0100aa22
lea eax, [ebp - 0x214]
push eax
push 1
call fcn.01010e2f
cmp eax, edi
je 0x10034b0
push eax
call fcn.010108fa
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 0x101c1b0
push 0x13
call fcn.01010a4f
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push eax
push 0x101c168
push 9
add esi, 5
call fcn.01010a4f
mov eax, dword [ebp - 0x214]
push dword [eax + 0xc]
push edi
push dword [0x101c1b4]
push esi
call fcn.0101052e
push eax
push esi
push edi
push str.__.ws_Fws_r_n
call fcn.010104ef
add esp, 0x14
cmp ebx, edi
je 0x100355b
lea eax, [ebp - 0x210]
push eax
push edi
push dword [0x101c1bc]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7d4]
call fcn.010104ef
add esp, 0x14
mov eax, dword [ebp - 0x214]
push dword [eax + 0x10]
push edi
push dword [0x101c1c4]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7d4]
call fcn.010104ef
add esp, 0x14
call fcn.01010854
push edi
push dword [0x101c244]
push esi
call fcn.0101052e
push eax
push esi
push edi
push str.__.ws_r_n
call fcn.010104ef
mov eax, dword [ebp - 0x214]
add esp, 0x10
push 1
push dword [eax + 0x20]
call fcn.01006b9c
call fcn.010032e5
mov ebx, eax
cmp ebx, edi
jne 0x10035c4
mov eax, dword [0x101c1ac]
push eax
push edi
push dword [0x101c1cc]
push esi
call fcn.0101052e
push eax
push esi
push edi
push str.__.ws__0.31ws_r_n
call fcn.010104ef
add esp, 0x14
push ebx
call fcn.0100338f
call fcn.01010854
mov eax, dword [ebp - 0x214]
push dword [eax + 0x14]
push edi
push dword [0x101c1dc]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7d4]
call fcn.010104ef
add esp, 0x14
cmp dword [ebp - 0x220], edi
jne 0x1003653
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x1003648
push eax
push edi
push dword [0x101c1ec]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7d4]
call fcn.010104ef
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 [0x101c1e4]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7d4]
call fcn.010104ef
add esp, 0x14
call fcn.01010854
mov eax, dword [ebp - 0x214]
push dword [eax + 0x24]
push edi
push dword [0x101c1f4]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7dc]
call fcn.010104ef
mov eax, dword [ebp - 0x214]
add esp, 0x14
push dword [eax + 0x2c]
push edi
push dword [0x101c1fc]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7dc]
call fcn.010104ef
mov eax, dword [ebp - 0x214]
add esp, 0x14
push dword [eax + 0x28]
push edi
push dword [0x101c204]
push esi
call fcn.0101052e
push eax
push esi
push edi
push dword [0x101d7e0]
call fcn.010104ef
add esp, 0x14
push dword [ebp - 0x214]
call sub.NETAPI32.dll_NetApiBufferFree
call fcn.01010868
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100fd6e
leave
ret