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

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
mov esi, dword [esp + 0x160]
push edi
mov dword [esp + 0x1c], str.octet
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], 0
mov ebp, dword [eax]
mov eax, dword [ebp + 0xb48]
test eax, eax
je 0x424288
mov dword [esp + 0x1c], str.netascii
mov eax, dword [esp + 0x168]
cmp eax, 7
ja case.0x424298.1
jmp dword [eax*4 + 0x42465c]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
inc edx
mov eax, edx
mov dword [esi + 0x18], edx
cmp eax, ecx
jle 0x4242c9
mov dword [esi + 8], 0xffffff9e
mov dword [esi], 3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x150
ret
mov eax, dword [ebp + 0xb90]
lea ebx, [esi + 0x150]
test eax, eax
je 0x424316
push 2
push ebx
call fcn.00424680
mov edx, dword [esi + 0x10]
mov ecx, dword [ebx]
add ecx, 4
add esp, 8
mov eax, dword [edx]
mov dword [eax + 0x124], ecx
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [ebp + 0xfa4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x424321
push ecx
push eax
push ebp
call fcn.0041b800
add esp, 0xc
jmp 0x424321
push 1
push ebx
call fcn.00424680
add esp, 8
mov ecx, dword [esi + 0x10]
push 0
lea eax, [esp + 0x1c]
push 0
mov edx, dword [ecx]
push eax
push 0
mov eax, dword [edx + 0xfd8]
inc eax
push eax
push ebp
call fcn.0041ca50
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42464f
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x144]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
sub edx, ecx
or ecx, 0xffffffff
sub edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jbe 0x42439e
push str.TFTP_file_name_too_long_n
push ebp
call fcn.0040e1d0
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x9f7294]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
push 0
push edx
push 0
push eax
mov eax, dword [esi + 0x144]
push str._s_c_s_c
add ecx, 2
push eax
push ecx
call fcn.00417b40
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x1c]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xb28]
test eax, eax
jne 0x424563
mov eax, dword [ebp + 0xb90]
test eax, eax
je 0x42442f
mov eax, dword [ebp + 0xfa0]
mov ecx, dword [ebp + 0xfa4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x42442f
push ecx
push eax
push str._I64d
lea eax, [esp + 0x2c]
push 0x40
push eax
call fcn.00417b40
add esp, 0x14
jmp 0x42443b
mov cx, word [0x9fa5b4]
mov word [esp + 0x20], cx
mov edx, dword [ebx]
mov ecx, dword [esp + 0x10]
add edx, ecx
push str.tsize
lea eax, [esp + 0x14]
push edx
push eax
push esi
call fcn.004246a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42447b
mov edx, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
add edx, ecx
lea eax, [esp + 0x14]
push edx
push eax
push esi
call fcn.004246a0
add esp, 0x10
mov edi, eax
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x20]
push ecx
push 0x9f734c
push 0x40
push edx
call fcn.00417b40
add esp, 0x10
test edi, edi
jne 0x4244da
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
add eax, edx
push str.blksize
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.004246a0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4244da
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
add eax, edx
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call fcn.004246a0
add esp, 0x10
mov edi, eax
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push edx
push 0x9f734c
push 0x40
push eax
call fcn.00417b40
add esp, 0x10
test edi, edi
jne 0x42453a
mov ecx, dword [ebx]
mov edi, dword [esp + 0x10]
add ecx, edi
push str.timeout
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.004246a0
add esp, 0x10
test eax, eax
jne 0x42453a
mov ecx, dword [ebx]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x20]
add ecx, edi
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.004246a0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x424563
push str.TFTP_buffer_too_small_for_options
push ebp
call fcn.0040e1d0
mov eax, dword [esp + 0x20]
push eax
call dword [0x9f7294]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 0x2b8]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
mov edx, dword [ebx]
push eax
mov eax, dword [esi + 0x14]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [esp + 0x10]
je 0x4245b3
lea ecx, [esp + 0x60]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0043a720
push eax
push 0x9f9d28
push ebp
call fcn.0040e1d0
add esp, 0x18
mov edx, dword [esp + 0x18]
push edx
call dword [0x9f7294]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov eax, dword [ebp + 0xb90]
push 6
test eax, eax
push esi
je 0x424611
call fcn.00424710
add esp, 8
mov dword [esp + 0x14], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
push 4
push esi
call fcn.00424710
add esp, 8
mov dword [esp + 0x14], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
push 3
push esi
call fcn.00424750
add esp, 8
mov dword [esp + 0x14], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
mov eax, dword [esp + 0x14]
mov dword [esi], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret
push str.tftp_send_first:_internal_error
push ebp
call fcn.0040e1d0
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret