Function at 0x10ba390
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
push edi
push 0x400
call fcn.01029a40
mov edi, dword [ebp + 8]
lea eax, [edi + eax*4 + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x400
push edi
call fcn.010b3c70
mov edx, dword [edi + 0x2c8]
lea ecx, [ebp - 0x1d4]
push ecx
push 0x202
call edx
test eax, eax
jne 0x10ba5d1
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x2d0]
push ebx
push esi
push eax
call ecx
test eax, eax
je 0x10ba464
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x10ba464
mov eax, edx
lea esp, [esp]
mov eax, dword [eax]
mov ebx, dword [eax]
cmp bl, 0x7f
je 0x10ba41c
test bl, bl
je 0x10ba41c
cmp bl, 0xff
je 0x10ba41c
cmp bl, 0xfe
je 0x10ba41c
cmp bl, 0xa9
jne 0x10ba428
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x10ba400
jmp 0x10ba464
push 0x41
lea esi, [edi + 0x370f]
push 0
push esi
call sub.msvcrt.dll_memset
mov ecx, ebx
shr ecx, 0x18
push ecx
mov edx, ebx
shr edx, 0x10
movzx eax, dl
push eax
mov ecx, ebx
shr ecx, 8
movzx edx, cl
push edx
movzx eax, bl
push eax
push 0x1015598
push 0x3f
push esi
call fcn.0102ac00
add esp, 0x28
xor eax, eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
xor ebx, ebx
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 6
mov dword [ebp + 8], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10ba4f1
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x10ba4ea
mov ebx, dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp dword [esi + 4], 0x17
jne 0x10ba4e0
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 4]
push ecx
lea edx, [edi + 0x3be3]
push edx
mov dword [ebp - 4], 0x3f
mov ecx, dword [esi + 0x10]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x10ba4e7
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10ba4b8
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp byte [edi + 0x370f], 0
lea ebx, [edi + 0x370f]
jne 0x10ba5c7
mov ecx, dword [edi + 0x2d8]
xor esi, esi
cmp ecx, esi
je 0x10ba5c7
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
push esi
push edx
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 6
call ecx
test eax, eax
jne 0x10ba5c7
mov edx, dword [ebp + 0xc]
mov ecx, edx
cmp edx, esi
je 0x10ba5ba
mov edi, edi
cmp dword [ecx + 4], 2
jne 0x10ba580
mov esi, dword [ecx + 0x18]
mov al, byte [esi + 4]
cmp al, 0x7f
je 0x10ba580
test al, al
je 0x10ba580
cmp al, 0xff
je 0x10ba580
cmp al, 0xfe
je 0x10ba580
cmp al, 0xa9
jne 0x10ba589
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x10ba560
jmp 0x10ba5ba
push 0x41
push 0
push ebx
call sub.msvcrt.dll_memset
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push ecx
push edx
push eax
push 0x1015598
push 0x3f
push ebx
call fcn.0102ac00
mov edx, dword [ebp + 0xc]
add esp, 0x28
mov eax, dword [edi + 0x2dc]
test eax, eax
je 0x10ba5c7
push edx
call eax
mov ecx, dword [edi + 0x24c]
call ecx
pop esi
pop ebx
add edi, 0x30
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
pop edi
mov esp, ebp
pop ebp
ret 0xc