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

Disassembly:
sub esp, 0x154
mov eax, dword [0x6204e0]
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 + 0xb70], 0
push edi
mov edi, str.octet
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
je 0x49ff3a
mov edi, str.netascii
mov dword [esp + 0xc], edi
cmp eax, 7
ja case.0x49ff43.1
jmp dword [eax*4 + 0x4a02f0]
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
jle 0x49ff7c
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.0058ecc6
add esp, 0x154
ret
cmp dword [esi + 0xbb8], 0
lea ebp, [ebx + 0x160]
mov ecx, ebp
je 0x49ffca
mov eax, 2
call fcn.0049eff0
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 + 0x1130]
mov ecx, dword [esi + 0x1134]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x49ffd4
push ecx
push eax
push esi
call fcn.00497130
add esp, 0xc
jmp 0x49ffd4
mov eax, 1
call fcn.0049eff0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0x1168]
push 0
inc eax
push eax
push esi
call fcn.00498120
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4a02d6
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0008
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0018
mov ecx, dword [ebx + 0x154]
sub eax, edi
mov edi, ecx
sub edi, eax
sub edi, 4
cmp edx, edi
jbe 0x4a0068
push str.TFTP_file_name_too_long_n
push esi
call fcn.00489340
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x618914]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0058ecc6
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.00491120
mov eax, dword [esp + 0x30]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0092
mov ecx, edi
sub eax, edx
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4a00a0
sub ecx, edi
cmp dword [esi + 0xb50], 0
lea edi, [ecx + eax + 4]
mov dword [esp + 0xc], edi
jne 0x4a0222
cmp dword [esi + 0xbb8], 0
je 0x4a00f4
mov eax, dword [esi + 0x1130]
mov esi, dword [esi + 0x1134]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x4a00f4
push esi
push eax
push str._I64d
lea edx, [esp + 0x28]
push 0x40
push edx
call fcn.00491120
add esp, 0x14
jmp 0x4a00fe
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.0049f2e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a0133
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push edx
push ebx
call fcn.0049f2e0
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x158]
push eax
push 0x5ace08
lea ecx, [esp + 0x24]
push 0x40
push ecx
call fcn.00491120
add esp, 0x10
test esi, esi
jne 0x4a0189
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
mov esi, str.blksize
push edx
push ebx
lea edi, [esp + 0x14]
call fcn.0049f2e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a0189
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push eax
push ebx
call fcn.0049f2e0
add esp, 8
mov esi, eax
mov ecx, dword [ebx + 0x1c]
push ecx
push 0x5ace08
lea edx, [esp + 0x24]
push 0x40
push edx
call fcn.00491120
add esp, 0x10
test esi, esi
jne 0x4a01e0
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
mov esi, str.timeout
push eax
push ebx
lea edi, [esp + 0x14]
call fcn.0049f2e0
add esp, 8
test eax, eax
jne 0x4a01e0
mov ecx, dword [ebp]
add ecx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push ecx
push ebx
call fcn.0049f2e0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a021a
mov edx, dword [esp + 0x18]
push str.TFTP_buffer_too_small_for_options
push edx
call fcn.00489340
mov eax, dword [esp + 0x1c]
push eax
call dword [0x618914]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0058ecc6
add esp, 0x154
ret
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0x2b8]
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 0x4a026d
push 0x100
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b55d0
push eax
push 0x5b0338
push esi
call fcn.00489340
add esp, 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x618914]
add esp, 4
jmp 0x4a02d2
cmp dword [esi + 0xbb8], 0
push 6
je 0x4a02ac
mov eax, ebx
call fcn.0049fe70
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4a02d2
push 4
mov eax, ebx
call fcn.0049fe70
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4a02d2
push 3
mov esi, ebx
call fcn.0049feb0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4a02d2
mov dword [ebx], 3
jmp 0x4a02d2
push str.tftp_send_first:_internal_error
push esi
call fcn.00489340
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0058ecc6
add esp, 0x154
ret