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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42a2e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
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 [0x43c550], eax
cmp eax, 0xffffffff
je 0x409128
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x409128
movzx ax, byte [0x434228]
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [0x434329], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov word [0x434529], ax
mov dword [0x43c548], esi
je 0x408f5f
mov ebx, 0x434329
jmp 0x408f85
cmp dword [ebp + 0xc], 0
jne 0x408f80
mov esi, 0x434229
push esi
call edi
mov ebx, eax
add ebx, esi
jmp 0x408f79
cmp byte [ebx], 0x5c
je 0x408f7d
dec ebx
cmp ebx, esi
jae 0x408f73
inc ebx
jmp 0x408f85
mov ebx, 0x434229
mov eax, dword [0x43c548]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [eax + 0x434529]
push eax
call esi
push ebx
call edi
mov ecx, dword [0x43c548]
lea eax, [ecx + eax + 1]
mov dword [0x43c548], eax
push str.octet
lea eax, [eax + 0x434529]
push eax
call esi
add dword [0x43c548], 6
mov ebx, dword [ebp - 0x18]
movsx eax, byte [ebx]
push eax
call fcn.00410b41
pop ecx
test eax, eax
je 0x40900d
mov eax, dword [0x43c548]
push str.blksize
lea eax, [eax + 0x434529]
push eax
call esi
add dword [0x43c548], 8
mov eax, dword [0x43c548]
push ebx
lea eax, [eax + 0x434529]
push eax
call esi
push ebx
call edi
mov ecx, dword [0x43c548]
lea eax, [ecx + eax + 1]
mov dword [0x43c548], eax
cmp dword [0x442a08], 0
je 0x40904a
mov eax, dword [0x43c548]
push str.udpport
lea eax, [eax + 0x434529]
push eax
call esi
add dword [0x43c548], 8
mov eax, dword [0x43c548]
push 0x426c30
lea eax, [eax + 0x434529]
push eax
call esi
add dword [0x43c548], 2
mov eax, dword [0x43c548]
push str.tsize
lea eax, [eax + 0x434529]
push eax
call esi
push dword [0x43c578]
add dword [0x43c548], 6
mov eax, dword [0x43c548]
lea eax, [eax + 0x434529]
push 0x426574
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x43c548]
lea eax, [ecx + eax + 1]
push 0x434429
mov dword [0x43c548], eax
call fcn.00408baa
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4090b5
push str.Host_is_unknown_or_invalid
call fcn.00408cd5
pop ecx
jmp 0x409142
mov eax, dword [0x43c544]
test eax, eax
jne 0x4090c1
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 [0x43c548]
push 0x434529
push dword [0x43c550]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x409123
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 0x40910a
mov edi, 0x425a7d
call fcn.0040cc32
push eax
call esi
push eax
push edi
push str.can_not_send_data_packet._n_s_nError_code__d___s_
call fcn.00408cd5
add esp, 0x10
jmp 0x409142
xor eax, eax
inc eax
jmp 0x409142
call fcn.0040cc32
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Cant_create_client_socket._nError_code__d___s_
call fcn.00408cd5
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e92f
leave
ret