Function at 0x10024620
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101600db
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x1024ed04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], esi
mov dword [eax], 0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], ecx
mov dword [ecx], 0
mov dword [ebp - 0x9c], esi
mov dword [ebp - 4], esi
mov ecx, ebx
call fcn.10024370
movzx eax, ax
test ax, ax
je 0x1002472a
mov ecx, 2
cmp cx, ax
je 0x100246b4
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x10024860
lea eax, [ebp - 0x98]
mov word [ebp - 0xec], cx
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0x98], 0x10
push eax
push 0
push 2
push ebx
call dword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
je 0x100246e9
xor esi, esi
jmp 0x10024860
lea eax, [ebp - 0xec]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0xa4]
lea eax, [ebp - 0x98]
push eax
push 0
call fcn.10025010
push dword [ebp - 0xac]
mov edx, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
call fcn.100248e0
add esp, 4
mov esi, eax
jmp 0x1002485a
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
push 3
lea eax, [ebp - 0x90]
movlpd qword [ebp - 0xc8], xmm0
push ebx
lea ecx, [ebp - 0x94]
movlpd qword [ebp - 0xc0], xmm0
movlpd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xd0], 0x100
mov dword [ebp - 0xcc], 2
mov dword [ebp - 0x94], eax
call fcn.10024ea0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xd0]
push eax
push 0
push dword [ebp - 0x94]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x100247bc
push eax
call fcn.10139093
add esp, 4
test ebx, ebx
je 0x100247ce
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor esi, esi
jmp 0x10024860
mov edi, dword [ebp - 0xa8]
test edi, edi
je 0x10024823
mov eax, dword [edi + 4]
cmp eax, 2
je 0x100247e5
cmp eax, 0x17
jne 0x1002481c
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x98], eax
cmp esi, dword [ebp - 0x9c]
je 0x10024803
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0xa0], esi
jmp 0x1002481c
lea eax, [ebp - 0x98]
push eax
push esi
lea ecx, [ebp - 0xa4]
call fcn.10025010
mov esi, dword [ebp - 0xa0]
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100247d8
push dword [ebp - 0xac]
mov edx, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
call fcn.100248e0
add esp, 4
mov esi, eax
push dword [ebp - 0xa8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
jne 0x1002485a
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100248b8
mov ecx, dword [ebp - 0x9c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10024890
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100248d6
push ecx
push edi
call fcn.101354f4
add esp, 8
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10134fc2
mov esp, ebp
pop ebp
ret
call fcn.101392e4
int3