Function at 0x4d3ed8
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x154
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x158]
push ebp
push esi
mov esi, dword [ebx + 0x10]
cmp dword [esi + 0xe9c], 0
push edi
mov edi, str.octet
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
je 0x4d3ec8
mov edi, str.netascii
mov dword [esp + 0xc], edi
cmp eax, 7
ja case.0x4d3ed1.1
jmp dword [eax*4 + 0x4d4250]
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
jle 0x4d3f0a
pop edi
pop esi
mov dword [ebx + 8], 0xffffff9e
mov dword [ebx], 3
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00418878
add esp, 0x154
ret
cmp dword [esi + 0x7dc], 0
lea ebp, [ebx + 0x14c]
mov ecx, ebp
je 0x4d3f56
mov eax, 2
call fcn.004d2fa0
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x10]
add eax, 4
mov dword [ecx + 0x130], eax
mov eax, dword [esi + 0xdb8]
mov ecx, dword [esi + 0xdbc]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4d3f60
push ecx
push eax
push esi
call fcn.004c2040
add esp, 0xc
jmp 0x4d3f60
mov eax, 1
call fcn.004d2fa0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0xdf0]
push 4
push 0
lea eax, [esp + 0x1c]
push eax
push 0
inc edx
push edx
push esi
call fcn.004e1a70
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d4238
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d3f92
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d3fa2
mov ecx, dword [ebx + 0x13c]
sub eax, edi
mov edi, ecx
sub edi, eax
sub edi, 4
cmp edx, edi
jbe 0x4d3ff2
push str.TFTP_file_name_too_long
push esi
call fcn.004c8260
mov eax, dword [esp + 0x1c]
push eax
call dword [0x6434cc]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00418878
add esp, 0x154
ret
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push 0
push edi
push 0
push edx
push str._s_c_s_c
push ecx
add eax, 2
push eax
call fcn.004b24f0
mov eax, dword [esp + 0x30]
add esp, 0x1c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d4020
mov ecx, edi
sub eax, edx
lea edi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4d4030
sub ecx, edi
cmp dword [esi + 0x774], 0
lea edi, [ecx + eax + 4]
mov dword [esp + 0xc], edi
jne 0x4d4187
cmp dword [esi + 0x7dc], 0
je 0x4d4084
mov eax, dword [esi + 0xdb8]
mov esi, dword [esi + 0xdbc]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x4d4084
push esi
push eax
push 0x5d836c
lea edx, [esp + 0x28]
push 0x40
push edx
call fcn.004b24f0
add esp, 0x14
jmp 0x4d408e
mov eax, 0x30
mov word [esp + 0x1c], ax
mov ecx, dword [ebp]
add ecx, edi
push ecx
push ebx
mov esi, str.tsize
lea edi, [esp + 0x14]
call fcn.004d3280
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d40c3
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push edx
push ebx
call fcn.004d3280
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x140]
push eax
push 0x627004
lea ecx, [esp + 0x24]
push 0x40
push ecx
call fcn.004b24f0
add esp, 0x10
test esi, esi
jne 0x4d4119
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
mov esi, str.blksize
push edx
push ebx
lea edi, [esp + 0x14]
call fcn.004d3280
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d4119
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push eax
push ebx
call fcn.004d3280
add esp, 8
mov esi, eax
mov ecx, dword [ebx + 0x1c]
push ecx
push 0x627004
lea edx, [esp + 0x24]
push 0x40
push edx
call fcn.004b24f0
add esp, 0x10
test esi, esi
jne 0x4d4170
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
mov esi, str.timeout
push eax
push ebx
lea edi, [esp + 0x14]
call fcn.004d3280
add esp, 8
test eax, eax
jne 0x4d4170
mov ecx, dword [ebp]
add ecx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push ecx
push ebx
call fcn.004d3280
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4d417f
mov edx, dword [esp + 0x18]
push str.TFTP_buffer_too_small_for_options
push edx
jmp 0x4d3fc2
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x48]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp]
push edx
mov edx, dword [ebx + 0x14]
push eax
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x4d41cf
push 0x100
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004aa910
push eax
push 0x627024
push esi
call fcn.004c8260
add esp, 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x6434cc]
add esp, 4
jmp 0x4d4234
cmp dword [esi + 0x7dc], 0
push 6
je 0x4d420e
mov eax, ebx
call fcn.004d3e10
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4d4234
push 4
mov eax, ebx
call fcn.004d3e10
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4d4234
push 3
mov esi, ebx
call fcn.004d3e50
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4d4234
mov dword [ebx], 3
jmp 0x4d4234
push str.tftp_send_first:_internal_error
push esi
call fcn.004c8260
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00418878
add esp, 0x154
ret