Function at 0x10bede0
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
push edi
push 0x400
call fcn.0102ab20
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.010b8740
mov edx, dword [edi + 0x2c8]
lea ecx, [ebp - 0x1d4]
push ecx
push 0x202
call edx
test eax, eax
jne 0x10bf021
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x2d0]
push ebx
push esi
push eax
call ecx
test eax, eax
je 0x10beeb4
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x10beeb4
mov eax, edx
lea esp, [esp]
mov eax, dword [eax]
mov ebx, dword [eax]
cmp bl, 0x7f
je 0x10bee6c
test bl, bl
je 0x10bee6c
cmp bl, 0xff
je 0x10bee6c
cmp bl, 0xfe
je 0x10bee6c
cmp bl, 0xa9
jne 0x10bee78
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x10bee50
jmp 0x10beeb4
push 0x41
lea esi, [edi + 0x376b]
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 0x10160f8
push 0x3f
push esi
call fcn.0102bdb0
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 0x10bef41
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x10bef3a
mov ebx, dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp dword [esi + 4], 0x17
jne 0x10bef30
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 4]
push ecx
lea edx, [edi + 0x3c3f]
push edx
mov dword [ebp - 4], 0x3f
mov ecx, dword [esi + 0x10]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x10bef37
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10bef08
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp byte [edi + 0x376b], 0
lea ebx, [edi + 0x376b]
jne 0x10bf017
mov ecx, dword [edi + 0x2d8]
xor esi, esi
cmp ecx, esi
je 0x10bf017
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 0x10bf017
mov edx, dword [ebp + 0xc]
mov ecx, edx
cmp edx, esi
je 0x10bf00a
mov edi, edi
cmp dword [ecx + 4], 2
jne 0x10befd0
mov esi, dword [ecx + 0x18]
mov al, byte [esi + 4]
cmp al, 0x7f
je 0x10befd0
test al, al
je 0x10befd0
cmp al, 0xff
je 0x10befd0
cmp al, 0xfe
je 0x10befd0
cmp al, 0xa9
jne 0x10befd9
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x10befb0
jmp 0x10bf00a
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 0x10160f8
push 0x3f
push ebx
call fcn.0102bdb0
mov edx, dword [ebp + 0xc]
add esp, 0x28
mov eax, dword [edi + 0x2dc]
test eax, eax
je 0x10bf017
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