Function at 0x42e990
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9830
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 1
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x48], esi
cmp dword [edx + 0x10], esi
je 0x42e9fa
cmp dword [edx + 0x14], 0x10
mov esi, edx
jb 0x42e9ea
mov esi, dword [edx]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 4
jmp 0x42ea16
cmp dword [ecx + 0x10], esi
je 0x42ea09
cmp dword [ecx + 0x14], 0x10
mov esi, ecx
jb 0x42ea09
mov esi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.0040e330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push ecx
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x54]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x42eb16
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x42eb0f
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
nop dword [eax]
push 0x81
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42ea95
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x42eb01
cmp byte [ebp + 0x14], 0
je 0x42eaaf
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 1
push 6
push edi
call ebx
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x42eac2
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp dword [esi + 4], 0x17
jne 0x42eadc
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x1b
push 0x29
push edi
call ebx
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x42eafa
push 5
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x42eb45
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42ea60
mov esi, dword [ebp - 0x58]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x42eb5a
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42eb50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42eba9
jmp 0x42eb50
push dword [ebp - 0x58]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x42eb19
push edx
push ecx
call fcn.0044bea4
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x42eb8b
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044b735
mov esp, ebp
pop ebp
ret
call fcn.004ab9cc
int3