Function at 0x10b8020
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
push edi
push 0x400
call fcn.010284a0
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.010b1980
mov edx, dword [edi + 0x2c8]
lea ecx, [ebp - 0x1d4]
push ecx
push 0x202
call edx
test eax, eax
jne 0x10b8261
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x2d0]
push ebx
push esi
push eax
call ecx
test eax, eax
je 0x10b80f4
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x10b80f4
mov eax, edx
lea esp, [esp]
mov eax, dword [eax]
mov ebx, dword [eax]
cmp bl, 0x7f
je 0x10b80ac
test bl, bl
je 0x10b80ac
cmp bl, 0xff
je 0x10b80ac
cmp bl, 0xfe
je 0x10b80ac
cmp bl, 0xa9
jne 0x10b80b8
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x10b8090
jmp 0x10b80f4
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 0x1015538
push 0x3f
push esi
call fcn.01029620
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 0x10b8181
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x10b817a
mov ebx, dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp dword [esi + 4], 0x17
jne 0x10b8170
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 0x10b8177
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10b8148
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 0x10b8257
mov ecx, dword [edi + 0x2d8]
xor esi, esi
cmp ecx, esi
je 0x10b8257
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 0x10b8257
mov edx, dword [ebp + 0xc]
mov ecx, edx
cmp edx, esi
je 0x10b824a
mov edi, edi
cmp dword [ecx + 4], 2
jne 0x10b8210
mov esi, dword [ecx + 0x18]
mov al, byte [esi + 4]
cmp al, 0x7f
je 0x10b8210
test al, al
je 0x10b8210
cmp al, 0xff
je 0x10b8210
cmp al, 0xfe
je 0x10b8210
cmp al, 0xa9
jne 0x10b8219
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x10b81f0
jmp 0x10b824a
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 0x1015538
push 0x3f
push ebx
call fcn.01029620
mov edx, dword [ebp + 0xc]
add esp, 0x28
mov eax, dword [edi + 0x2dc]
test eax, eax
je 0x10b8257
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