Function at 0x1009ece0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x218
mov eax, dword [0x101c3584]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
mov edi, dword [esp + 0x22c]
push 0x1f88
mov dword [esp + 0x20], edi
call esi
push 0x1f88
mov dword [esp + 0x18], eax
call esi
mov dword [esp + 0x20], eax
xor eax, eax
test edi, edi
sete al
xor ebp, ebp
mov dword [0x101f46a0], 1
mov dword [esp + 0x18], eax
mov eax, dword [0x101bc068]
mov edi, eax
cmp eax, 2
je 0x1009ed4e
cmp eax, 1
jne 0x1009ed80
push 0x200
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
je 0x1009ed7b
cmp word [ebp + 8], 0x17
mov edi, 2
je 0x1009ed80
mov edi, 1
test ebx, ebx
je 0x1009ed8f
mov edi, 4
mov dword [0x101bc068], edi
lea eax, [edi - 1]
cmp eax, 0x7f
ja case.0x1009ed9e.3
movzx eax, byte [eax + 0x1009ef80]
jmp dword [eax*4 + 0x1009ef6c]
test ebx, ebx
jne 0x1009edc0
push str.Cant_set_up_engineID_of_type_text_from_an_empty_string._n
push 3
call fcn.10092860
add esp, 8
or eax, 0xffffffff
jmp 0x1009ef52
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009edc5
sub eax, edx
add eax, 5
mov dword [esp + 0x10], eax
jmp 0x1009ee30
mov dword [esp + 0x10], 0x15
jmp 0x1009ee30
cmp dword [0x101f4694], 0
je 0x1009edf4
mov eax, dword [0x101f4698]
jmp 0x1009ef52
cmp dword [0x101f46a4], 0
je 0x1009ee09
mov ecx, dword [0x101f46a8]
mov dword [esp + 0x10], ecx
jmp 0x1009ee30
mov dword [esp + 0x10], 0x11
jmp 0x1009ee30
push edi
push str.Unknown_EngineID_type_requested_for_setup___d_.__Using_IPv4._n
push 3
call fcn.10092860
add esp, 0xc
mov edi, 1
mov dword [esp + 0x10], 9
mov edx, dword [esp + 0x10]
push edx
call fcn.1013fbbd
mov esi, eax
add esp, 4
test esi, esi
jne 0x1009ee58
push str.setup_engineID_malloc
call fcn.10092880
add esp, 4
or eax, 0xffffffff
jmp 0x1009ef52
cmp edi, 0x80
jne 0x1009ee68
mov eax, dword [esp + 0x20]
mov dword [esi], eax
jmp 0x1009ee6e
mov ecx, dword [esp + 0x14]
mov dword [esi], ecx
or byte [esi], 0x80
sub edi, 2
je 0x1009ef02
sub edi, 2
je 0x1009eee8
sub edi, 0x7c
je 0x1009eeb6
mov byte [esi + 4], 1
test ebp, ebp
je 0x1009eea4
cmp word [ebp + 8], 2
jne 0x1009eea4
movsx edx, word [ebp + 0xa]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esi + 5]
push edx
jmp 0x1009ef15
mov byte [esi + 5], 0x7f
mov byte [esi + 6], 0
mov byte [esi + 7], 0
mov byte [esi + 8], 1
jmp 0x1009ef1d
mov eax, dword [0x101f46a4]
test eax, eax
je 0x1009eeca
mov ecx, dword [0x101f46a8]
push ecx
push eax
push esi
jmp 0x1009ef15
mov byte [esi + 4], 0x80
call fcn.10142907
push 0
mov dword [esi + 5], eax
call fcn.10143bb5
add esp, 4
mov dword [esi + 9], eax
mov dword [esi + 0xd], edx
jmp 0x1009ef1d
mov eax, ebx
mov byte [esi + 4], 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009eef1
sub eax, edx
push eax
push ebx
lea edx, [esi + 5]
push edx
jmp 0x1009ef15
mov byte [esi + 4], 2
movsx eax, word [ebp + 0xa]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
push edx
lea eax, [esi + 5]
push eax
call fcn.1013fc90
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x1009ef48
mov eax, dword [0x101f4694]
test eax, eax
je 0x1009ef36
push eax
call fcn.1013db65
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [0x101f4694], esi
mov dword [0x101f4698], ecx
jmp 0x1009ef4e
mov edx, dword [esp + 0x1c]
mov dword [edx], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013d581
add esp, 0x218
ret