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

Disassembly:
sub esp, 0x154
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x150], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x158]
push ebp
push esi
mov esi, dword [ecx]
cmp dword [esi + 0xb68], 0
push edi
mov edi, str.octet
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
je 0x473f5a
mov edi, str.netascii
mov dword [esp + 0xc], edi
cmp eax, 7
ja case.0x473f63.1
jmp dword [eax*4 + 0x474320]
add dword [ebx + 0x18], 1
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
jle 0x473f9d
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.0044e502
add esp, 0x154
ret
cmp dword [esi + 0xbb0], 0
lea ebp, [ebx + 0x160]
mov ecx, ebp
je 0x473feb
mov eax, 2
call fcn.00473010
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp]
mov ecx, dword [eax]
add edx, 4
mov dword [ecx + 0x148], edx
mov eax, dword [esi + 0x1128]
mov ecx, dword [esi + 0x112c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x473ff5
push ecx
push eax
push esi
call fcn.0046aa00
add esp, 0xc
jmp 0x473ff5
mov eax, 1
call fcn.00473010
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0x1160]
push 0
add eax, 1
push eax
push esi
call fcn.0046ba10
add esp, 0x18
test eax, eax
mov dword [esp + 0x10], eax
jne 0x474305
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
jmp 0x474030
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x474030
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x474042
mov ecx, dword [ebx + 0x154]
sub eax, edi
mov edi, ecx
sub edi, eax
sub edi, 4
cmp edx, edi
jbe 0x474094
push str.TFTP_file_name_too_long_n
push esi
call fcn.0045c260
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x5d203c]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0044e502
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.00465130
mov eax, dword [esp + 0x30]
add esp, 0x1c
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4740c0
mov ecx, edi
sub eax, edx
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4740d0
sub ecx, edi
cmp dword [esi + 0xb48], 0
lea edi, [ecx + eax + 4]
mov dword [esp + 0xc], edi
jne 0x474251
cmp dword [esi + 0xbb0], 0
je 0x474126
mov eax, dword [esi + 0x1128]
mov esi, dword [esi + 0x112c]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x474126
push esi
push eax
push str._I64d
lea edx, [esp + 0x28]
push 0x40
push edx
call fcn.00465130
add esp, 0x14
jmp 0x47412d
mov word [esp + 0x1c], 0x30
mov eax, dword [ebp]
add eax, edi
push eax
push ebx
mov esi, str.tsize
lea edi, [esp + 0x14]
call fcn.004732f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x474162
mov ecx, dword [ebp]
add ecx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push ecx
push ebx
call fcn.004732f0
add esp, 8
mov esi, eax
mov edx, dword [ebx + 0x158]
push edx
push 0x5c611c
lea eax, [esp + 0x24]
push 0x40
push eax
call fcn.00465130
add esp, 0x10
test esi, esi
jne 0x4741b8
mov ecx, dword [ebp]
add ecx, dword [esp + 0xc]
mov esi, str.blksize
push ecx
push ebx
lea edi, [esp + 0x14]
call fcn.004732f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4741b8
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push edx
push ebx
call fcn.004732f0
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x1c]
push eax
push 0x5c611c
lea ecx, [esp + 0x24]
push 0x40
push ecx
call fcn.00465130
add esp, 0x10
test esi, esi
jne 0x47420f
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
mov esi, str.timeout
push edx
push ebx
lea edi, [esp + 0x14]
call fcn.004732f0
add esp, 8
test eax, eax
jne 0x47420f
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push eax
push ebx
call fcn.004732f0
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x474249
mov ecx, dword [esp + 0x18]
push str.TFTP_buffer_too_small_for_options
push ecx
call fcn.0045c260
mov edx, dword [esp + 0x1c]
push edx
call dword [0x5d203c]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0044e502
add esp, 0x154
ret
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x2b8]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp]
push ecx
mov ecx, dword [ebx + 0x14]
push edx
push 0
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x47429c
push pe_nt_image_headers32
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00489550
push eax
push 0x5c4400
push esi
call fcn.0045c260
add esp, 0x18
mov eax, dword [esp + 0x14]
push eax
call dword [0x5d203c]
add esp, 4
jmp 0x474301
cmp dword [esi + 0xbb0], 0
push 6
je 0x4742db
mov eax, ebx
call fcn.00473e90
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x474301
push 4
mov eax, ebx
call fcn.00473e90
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x474301
push 3
mov esi, ebx
call fcn.00473ed0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x474301
mov dword [ebx], 3
jmp 0x474301
push str.tftp_send_first:_internal_error
push esi
call fcn.0045c260
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044e502
add esp, 0x154
ret