Function at 0x4079a0
Capabilities:
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov dword [esp + 4], eax
mov esi, 2
mov dword [esp + 8], eax
mov word [esp + 4], si
mov dword [esp + 0xc], eax
push eax
push esi
push esi
mov dword [esp + 0x1c], eax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x423bbd], eax
je 0x407c26
lea ecx, [esp + 4]
push 0x10
push ecx
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x407c26
movzx dx, byte [0x41b9a8]
push ebx
push edi
push edx
call sub.WSOCK32.dll_htons
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov word [0x41bba9], ax
mov eax, dword [esp + 0x24]
mov dword [0x423bb5], esi
test eax, eax
jne 0x407a3e
push 0x41b9a9
call ebx
mov esi, eax
add esi, 0x41b9a9
cmp esi, 0x41b9a9
jb 0x407a3b
cmp byte [esi], 0x5c
je 0x407a3b
dec esi
cmp esi, 0x41b9a9
jae 0x407a2d
inc esi
jmp 0x407a43
mov esi, 0x41b9a9
mov eax, dword [0x423bb5]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [eax + 0x41bba9]
push ecx
call edi
push esi
call ebx
mov edx, dword [0x423bb5]
push str.octet
lea eax, [edx + eax + 1]
mov dword [0x423bb5], eax
lea eax, [eax + 0x41bba9]
push eax
call edi
mov ecx, dword [0x423bb5]
mov eax, dword [0x417b84]
add ecx, 6
cmp eax, 1
mov dword [0x423bb5], ecx
jle 0x407aa5
mov esi, dword [esp + 0x20]
push 4
movsx ecx, byte [esi]
push ecx
call fcn.0040b4be
add esp, 8
jmp 0x407ab7
mov esi, dword [esp + 0x20]
mov eax, dword [str.________________________________H]
movsx edx, byte [esi]
mov al, byte [eax + edx*2]
and eax, 4
test eax, eax
je 0x407af9
mov ecx, dword [0x423bb5]
push str.blksize
lea edx, [ecx + 0x41bba9]
push edx
call edi
mov eax, dword [0x423bb5]
push esi
add eax, 8
mov dword [0x423bb5], eax
lea eax, [eax + 0x41bba9]
push eax
call edi
push esi
call ebx
mov ecx, dword [0x423bb5]
lea edx, [ecx + eax + 1]
mov dword [0x423bb5], edx
mov eax, dword [0x423bb5]
push str.tsize
lea ecx, [eax + 0x41bba9]
push ecx
call edi
mov eax, dword [0x423bb5]
mov edx, dword [0x423bdd]
add eax, 6
push edx
mov dword [0x423bb5], eax
push 0x415804
lea eax, [eax + 0x41bba9]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x423bb5]
add esp, 0xc
lea edx, [ecx + eax + 1]
push 0x41baa9
mov dword [0x423bb5], edx
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
jne 0x407b87
push 0x41baa9
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x407b87
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0x20]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
pop edi
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
pop ebx
jne 0x407ba4
push str.Host_is_unknown_or_invalid
call fcn.00406300
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, dword [0x423bb1]
test eax, eax
jne 0x407bb2
mov eax, 0x45
push eax
call sub.WSOCK32.dll_htons
mov ecx, dword [0x423bb5]
mov edx, dword [0x423bbd]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push 0
push ecx
push 0x41bba9
push edx
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x407c1c
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, eax
mov esi, str.Tftp_server_may_have_been_stopped
je 0x407bfd
mov esi, 0x41b998
call fcn.00403340
push eax
call sub.WSOCK32.dll_WSAGetLastError
push eax
push esi
push str.can_not_send_data_packet._n_s_nError_code__d___s_
call fcn.00406300
add esp, 0x10
pop esi
add esp, 0x10
ret
mov eax, 1
pop esi
add esp, 0x10
ret
call fcn.00403340
push eax
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Cant_create_client_socket._nError_code__d___s_
call fcn.00406300
add esp, 0xc
pop esi
add esp, 0x10
ret