Function at 0x10bfe50
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
push edi
push 0x400
call fcn.0102b240
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.010b96d0
mov edx, dword [edi + 0x2d4]
lea ecx, [ebp - 0x1d4]
push ecx
push 0x202
call edx
test eax, eax
jne 0x10c0091
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x2dc]
push ebx
push esi
push eax
call ecx
test eax, eax
je 0x10bff24
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x10bff24
mov eax, edx
lea esp, [esp]
mov eax, dword [eax]
mov ebx, dword [eax]
cmp bl, 0x7f
je 0x10bfedc
test bl, bl
je 0x10bfedc
cmp bl, 0xff
je 0x10bfedc
cmp bl, 0xfe
je 0x10bfedc
cmp bl, 0xa9
jne 0x10bfee8
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x10bfec0
jmp 0x10bff24
push 0x41
lea esi, [edi + 0x3773]
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 0x1016308
push 0x3f
push esi
call fcn.0102c510
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 0x10bffb1
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x10bffaa
mov ebx, dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp dword [esi + 4], 0x17
jne 0x10bffa0
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 4]
push ecx
lea edx, [edi + 0x3c47]
push edx
mov dword [ebp - 4], 0x3f
mov ecx, dword [esi + 0x10]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x10bffa7
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10bff78
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp byte [edi + 0x3773], 0
lea ebx, [edi + 0x3773]
jne 0x10c0087
mov ecx, dword [edi + 0x2e4]
xor esi, esi
cmp ecx, esi
je 0x10c0087
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 0x10c0087
mov edx, dword [ebp + 0xc]
mov ecx, edx
cmp edx, esi
je 0x10c007a
mov edi, edi
cmp dword [ecx + 4], 2
jne 0x10c0040
mov esi, dword [ecx + 0x18]
mov al, byte [esi + 4]
cmp al, 0x7f
je 0x10c0040
test al, al
je 0x10c0040
cmp al, 0xff
je 0x10c0040
cmp al, 0xfe
je 0x10c0040
cmp al, 0xa9
jne 0x10c0049
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x10c0020
jmp 0x10c007a
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 0x1016308
push 0x3f
push ebx
call fcn.0102c510
mov edx, dword [ebp + 0xc]
add esp, 0x28
mov eax, dword [edi + 0x2e8]
test eax, eax
je 0x10c0087
push edx
call eax
mov ecx, dword [edi + 0x258]
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