Function at 0x10001c10
Capabilities:
Get domain information

Disassembly:
sub esp, 0x54
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x100536a8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10001c72
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov edx, ecx
mov esi, 0x100536a8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
cmp eax, ebx
je 0x10001cac
mov edx, dword [0x10053690]
push eax
push str.init_domain_Error:_d
push edx
call fcn.10026380
add esp, 0xc
lea ecx, [esp + 0x24]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xc], ebx
jne 0x10001ccd
mov eax, dword [0x10053690]
push str.init_domain_Domain_is_NULL
push eax
call fcn.10026380
add esp, 8
jmp 0x10001dc1
mov esi, dword [eax + 0xc]
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x38], cl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x34]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp eax, ebx
lea edi, [edx + 1]
jne 0x10001d0e
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push edi
push eax
push ebx
push ebx
call ebp
mov esi, eax
mov byte [esp + 0x13], bl
mov al, byte [esp + 0x13]
cmp esi, ebx
mov byte [esp + 0x44], al
mov eax, esi
jge 0x10001d34
xor eax, eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x13]
mov dword [esp + 0x48], eax
push ecx
push esi
push eax
lea ecx, [esp + 0x50]
call fcn.10008ec0
mov ecx, dword [esp + 0x48]
lea eax, [ecx + esi]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x10001d6d
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push ebx
push esi
push ecx
push edi
push eax
push ebx
push ebx
call ebp
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x13]
push edx
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x44]
call fcn.10008c30
push 1
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x18]
call fcn.1002aed0
push ebx
push ebx
push str.SoftwareGWClientCheck
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x28]
call fcn.1002af20
test eax, eax
jne 0x10001e08
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x10001df0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push str.Domain
lea ecx, [esp + 0x20]
call fcn.1002afb0
lea ecx, [esp + 0x18]
call fcn.1002af70
lea ecx, [esp + 0x18]
call fcn.1002aee0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x10001e3b
mov al, byte [ecx - 1]
cmp al, bl
je 0x10001e31
cmp al, 0xff
je 0x10001e31
pop edi
dec al
pop esi
pop ebp
mov byte [ecx - 1], al
pop ebx
add esp, 0x54
ret
dec ecx
push ecx
call fcn.100463e2
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret