Function at 0x414b50
Capabilities:
Get domain controller name
Get domain information
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x420ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 4]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
jne 0x414eda
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x30], ebx
je 0x414ba5
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], ebp
cmp dword [esi + 8], ebp
je 0x414bc9
push ebx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x414eda
mov dword [ebx], ebp
jmp 0x414f35
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], ebp
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov esi, 0x1000
push esi
mov bl, 3
push 0x40
mov byte [esp + 0x54], bl
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
push 0x426e28
mov ecx, edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov esi, eax
cmp esi, 0xffffffff
je 0x414ca5
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
sub eax, esi
sub eax, 1
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 5
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x414cb0
push edi
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
jne 0x414de5
lea eax, [esp + 0x28]
push eax
push SysReAllocString
push 0
push 0
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push 0
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x414d9d
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 2
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov ebp, 1
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
push 0x426e2c
mov ecx, eax
mov byte [esp + 0x50], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
lea ecx, [esp + 0x2c]
sete byte [esp + 0x17]
mov byte [esp + 0x4c], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp byte [esp + 0x17], 0
je 0x414d8d
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
sub eax, 2
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x414de5
push eax
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x414de5
lea ecx, [esp + 0x2c]
push ecx
push 1
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
jne 0x414de5
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
cmp eax, 4
je 0x414dc8
cmp eax, 5
jne 0x414ddf
mov edx, dword [ecx + 8]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov ecx, dword [esp + 0x2c]
mov ebp, 1
push ecx
call sub.NETAPI32.dll_DsRoleFreeMemory
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
je 0x414df7
xor edi, edi
jmp 0x414e0e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
mov edi, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x1000
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
mov esi, dword [esp + 0x44]
push eax
lea edx, [esp + 0x44]
push edx
push esi
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
je 0x414ef0
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
jne 0x414e8f
test ebp, ebp
je 0x414e8f
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x414e9e
push esi
call fcn.00412a10
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx], eax
test esi, esi
je 0x414ea9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x30]
cmp dword [edx], 0
lea ecx, [esp + 0x1c]
je 0x414f11
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
test esi, esi
je 0x414f0d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 6
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret