Function at 0x40876c
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a43c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x18], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop esi
stosd dword es:[edi], eax
push 0
stosd dword es:[edi], eax
push esi
mov eax, esi
push esi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x43a668], eax
cmp eax, 0xffffffff
je 0x4089c3
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4089c3
movzx ax, byte [0x432340]
movzx eax, ax
push ebx
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [0x432441], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov word [0x432641], ax
mov dword [0x43a660], esi
je 0x4087f9
mov ebx, 0x432441
jmp 0x40881f
cmp dword [ebp + 0xc], 0
jne 0x40881a
mov esi, 0x432341
push esi
call edi
mov ebx, eax
add ebx, esi
jmp 0x408813
cmp byte [ebx], 0x5c
je 0x408817
dec ebx
cmp ebx, esi
jae 0x40880d
inc ebx
jmp 0x40881f
mov ebx, 0x432341
mov eax, dword [0x43a660]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [eax + 0x432641]
push eax
call esi
push ebx
call edi
mov ecx, dword [0x43a660]
lea eax, [ecx + eax + 1]
mov dword [0x43a660], eax
push str.octet
lea eax, [eax + 0x432641]
push eax
call esi
add dword [0x43a660], 6
mov ebx, dword [ebp - 0x18]
movsx eax, byte [ebx]
push eax
call fcn.004106b1
pop ecx
test eax, eax
je 0x4088a7
mov eax, dword [0x43a660]
push str.blksize
lea eax, [eax + 0x432641]
push eax
call esi
add dword [0x43a660], 8
mov eax, dword [0x43a660]
push ebx
lea eax, [eax + 0x432641]
push eax
call esi
push ebx
call edi
mov ecx, dword [0x43a660]
lea eax, [ecx + eax + 1]
mov dword [0x43a660], eax
cmp dword [0x440428], 0
pop ebx
je 0x4088e5
mov eax, dword [0x43a660]
push str.udpport
lea eax, [eax + 0x432641]
push eax
call esi
add dword [0x43a660], 8
mov eax, dword [0x43a660]
push 0x4244bc
lea eax, [eax + 0x432641]
push eax
call esi
add dword [0x43a660], 2
mov eax, dword [0x43a660]
push str.tsize
lea eax, [eax + 0x432641]
push eax
call esi
push dword [0x43a690]
add dword [0x43a660], 6
mov eax, dword [0x43a660]
lea eax, [eax + 0x432641]
push 0x423c84
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x43a660]
lea eax, [ecx + eax + 1]
push 0x432541
mov dword [0x43a660], eax
call fcn.00408443
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x408950
push str.Host_is_unknown_or_invalid
call fcn.0040856f
pop ecx
jmp 0x4089dd
mov eax, dword [0x43a65c]
test eax, eax
jne 0x40895c
push 0x45
pop eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [0x43a660]
push 0x432641
push dword [0x43a668]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4089be
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
mov edi, eax
call esi
cmp edi, eax
mov edi, str.Tftp_server_may_have_been_stopped
je 0x4089a5
mov edi, 0x4230c4
call fcn.0040c636
push eax
call esi
push eax
push edi
push str.can_not_send_data_packet._n_s_nError_code__d___s_
call fcn.0040856f
add esp, 0x10
jmp 0x4089dd
xor eax, eax
inc eax
jmp 0x4089dd
call fcn.0040c636
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Cant_create_client_socket._nError_code__d___s_
call fcn.0040856f
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e208
leave
ret