Function at 0x42e810
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45d780]
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
xor esi, esi
lea ecx, [ebx + 0xec]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x2a], 1
mov dword [ebp - 0x18], esi
mov word [ebp - 0x14], 0x1100
cmp ecx, esi
je 0x42e86c
call fcn.00422c40
mov edi, eax
mov byte [ebp - 0x2a], 0
jmp 0x42e8f8
push esi
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e89b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, esi
jle 0x42ea51
and eax, 0xffff
or eax, 0x80070000
jmp 0x42ea51
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x48]
push eax
push 4
push 0xffff
push edi
mov dword [ebp - 0x48], 1
call esi
test eax, eax
je 0x42e8cd
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jmp 0x42e886
push 1
lea ecx, [ebp - 0x29]
push ecx
push 0x20
push 0xffff
push edi
mov byte [ebp - 0x29], 0x31
call esi
test eax, eax
jns 0x42e8f6
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jmp 0x42e886
xor esi, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
lea edx, [ebp - 0x44]
push edx
call fcn.0042dd40
mov eax, dword [ebp - 0x40]
add esp, 4
mov byte [ebp - 0x29], 0
test eax, eax
je 0x42e98f
cmp esi, eax
jae 0x42ea6d
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax + esi*4]
push 0
push str.169.254
push ebx
call fcn.00423da0
add esp, 0xc
test al, al
je 0x42e944
mov byte [ebp - 0x29], 1
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + 0x14]
mov ecx, 2
push eax
mov word [ebp - 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
lea ecx, [ebp - 0x28]
push ecx
push 0
push 6
lea edx, [ebp - 0x18]
push edx
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebp - 0x40]
inc esi
cmp esi, eax
jb 0x42e926
cmp byte [ebp - 0x29], 0
mov ebx, dword [ebp - 0x34]
jne 0x42e9d3
cmp byte [0x45f8b8], 0
je 0x42e9d3
movzx ecx, word [ebx + 0x14]
mov eax, 2
push ecx
mov word [ebp - 0x28], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.169.254.255.255
mov word [ebp - 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
lea edx, [ebp - 0x28]
push edx
push 0
mov dword [ebp - 0x24], eax
push 6
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
movzx edx, word [ebx + 0x14]
mov ecx, 2
push edx
mov word [ebp - 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x28]
push eax
push 0
push 6
lea ecx, [ebp - 0x18]
push ecx
or esi, 0xffffffff
push edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
jne 0x42ea2e
cmp byte [ebp - 0x2a], 0
je 0x42ea17
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jle 0x42ea2b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x42ea4e
mov edx, dword [ebp - 0x40]
push edx
push eax
call fcn.00404b80
mov eax, dword [ebp - 0x44]
push eax
call fcn.00430a66
add esp, 0xc
mov eax, dword [ebp - 0x30]
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.00430215
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401770
int3