Function at 0x4184f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
jne 0x418531
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 2
xorps xmm0, xmm0
movups xmmword [esi + 0xc], xmm0
movq qword [esi + 0x1c], xmm0
mov dword [esi + 0x24], 0
je 0x418615
lea eax, [esp + 0xc]
movaps xmmword [esp + 0x10], xmm0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
push 0
push edi
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x24], 0x17
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
test eax, eax
jne 0x4185de
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, accept
mov ecx, dword [edx + 0x10]
cmp ecx, eax
cmova ecx, eax
mov eax, dword [esi]
push ecx
push dword [edx + 0x18]
mov ecx, esi
call dword [eax + 8]
cmp dword [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
movzx eax, cx
je 0x4185bb
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push dword [esp + 0xc]
mov word [esi + 0xe], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0x17
jne 0x418615
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4185f3
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0x10
mov eax, 2
mov dword [esi + 4], 2
lea edx, [esp + 0xc]
mov word [esi + 0xc], ax
mov ecx, edi
call fcn.004191a0
cmp eax, 1
jne 0x41868e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x418648
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
jmp 0x41864c
mov eax, dword [esp + 0xc]
push 0
push edi
mov dword [esp + 0x14], eax
mov ecx, esi
push 4
lea eax, [esp + 0x18]
push eax
call fcn.00418bd0
mov ecx, dword [ebp + 8]
movzx eax, cx
test edi, edi
je 0x418675
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov word [esi + 0xe], ax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x4186cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call edi
mov dword [eax], esi
call edi
mov esi, dword [eax]
call edi
mov dword [eax], esi
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0x10
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp + 0x10]
add esp, 0xc
test edi, edi
je 0x4186f5
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
jmp 0x4186f9
mov eax, dword [esp + 0xc]
push 0
push edi
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004184a0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.00456d98
mov esp, ebp
pop ebp
ret 0x10