Function at 0x4014c9
Capabilities:
Create thread
Create udp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
mov eax, 0xfff4
call fcn.00403c50
sub esp, eax
call sym.___main
call sym._printHeader
lea eax, [ebp - 0x1b0]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40152c
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.WSAStartup_failed_with_error:__d_n
call sym._printf
mov eax, 1
jmp 0x401991
mov dword [ebp - 0x1d4], 0x10
mov dword [esp + 8], 0x11
mov dword [esp + 4], 2
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401582
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Socket_creation_failed_with_error:__d_n
call sym._printf
call sym._WSACleanup_0
mov eax, 1
jmp 0x401991
mov word [ebp - 0x1c0], 2
mov dword [esp], 0
call sym._htonl_4
sub esp, 4
mov dword [ebp - 0x1bc], eax
mov dword [esp], 0x45
call sym._htons_4
sub esp, 4
mov word [ebp - 0x1be], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1c0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._bind_12
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x40160d
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Socket_bind_failed_with_error:__d_n
call sym._printf
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov eax, 1
jmp 0x401991
movzx eax, word [ebp - 0x1be]
movzx eax, ax
mov dword [esp], eax
call sym._ntohs_4
sub esp, 4
movzx eax, ax
mov dword [esp + 4], eax
mov dword [esp], str.tftp_server:_listening_on__d_n
call sym._printf
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x1d0]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0xfde8
mov dword [esp + 4], 0
lea eax, [ebp - 0xffbc]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x1d4]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1d0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xfde8
lea eax, [ebp - 0xffbc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._recvfrom_24
sub esp, 0x18
cmp eax, 0xffffffff
jne 0x4016cc
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.recvfrom_failed_with_error:__d_n
call sym._printf
jmp 0x40198c
lea eax, [ebp - 0xffbc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp], eax
call sym._ntohs_4
sub esp, 4
mov word [ebp - 0x16], ax
cmp word [ebp - 0x16], 1
jne 0x40184a
mov eax, dword [0x40902c]
cmp eax, 2
ja 0x401742
mov eax, dword [0x409030]
test eax, eax
jne 0x401742
mov dword [ebp - 0xc], 0
jmp 0x40173a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x409020]
test eax, eax
jne 0x401736
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xffc0], eax
mov eax, dword [ebp - 0xc]
mov dword [eax*4 + 0x409020], 1
nop
jmp 0x401753
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 2
jbe 0x40170e
jmp 0x401753
mov dword [esp], str.tftp_server:_Cant_start_the_read_session
call sym._puts
jmp 0x401635
mov eax, dword [ebp - 0xffc0]
imul eax, eax, 0xac
add eax, 0x4090a0
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0xffd8], edx
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0xffd4], ecx
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0xffd0], edx
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0xffcc], ecx
mov edx, dword [ebp - 0xffd8]
mov dword [eax], edx
mov ecx, dword [ebp - 0xffd4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xffd0]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xffcc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0xffc0]
mov dword [esp + 4], eax
lea eax, [ebp - 0xffbc]
mov dword [esp], eax
call sym._filename_mode_option_fetch
lea eax, [ebp - 0xffc4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xffc0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._RRQ_func_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40182a
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.tftp_server:_Thread_creation_failed_with_error:__d_n
call sym._printf
jmp 0x401838
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [0x40902c]
add eax, 1
mov dword [0x40902c], eax
jmp 0x401635
cmp word [ebp - 0x16], 2
jne 0x401635
mov eax, dword [0x40902c]
test eax, eax
jne 0x401949
mov dword [ebp - 0xffc0], 0
mov dword [0x409030], 1
mov eax, dword [ebp - 0xffc0]
mov dword [eax*4 + 0x409020], 1
mov eax, dword [ebp - 0xffc0]
imul eax, eax, 0xac
add eax, 0x4090a0
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0xffd8], edx
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0xffd4], ecx
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0xffd0], edx
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0xffcc], ecx
mov edx, dword [ebp - 0xffd8]
mov dword [eax], edx
mov ecx, dword [ebp - 0xffd4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xffd0]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xffcc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0xffc0]
mov dword [esp + 4], eax
lea eax, [ebp - 0xffbc]
mov dword [esp], eax
call sym._filename_mode_option_fetch
lea eax, [ebp - 0xffc8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xffc0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._WRQ_func_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401971
jmp 0x40195a
mov dword [esp], str.tftp_server:_Cant_start_the_write_session
call sym._puts
jmp 0x401635
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.tftp_server:_Thread_creation_failed_with_error:__d_n
call sym._printf
jmp 0x40197f
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [0x40902c]
add eax, 1
mov dword [0x40902c], eax
jmp 0x401635
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret