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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x59da54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov ecx, str.netascii
mov edi, str.octet
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x88], edx
mov eax, dword [edx + 0xa94]
test eax, 0x800
cmovne edi, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 7
ja case.0x4489ca.1
jmp dword [ecx*4 + 0x448e70]
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x4489fc
pop edi
mov dword [esi + 8], 0xffffff9e
xor eax, eax
mov dword [esi], 3
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x160]
test dword [edx + 0xa94], 0x20000000
mov byte [eax], bl
mov eax, dword [esi + 0x160]
je 0x448af5
mov ebx, dword [ebp - 0x88]
mov byte [eax + 1], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
add ecx, 4
mov eax, dword [eax]
mov dword [eax + 0x148], ecx
mov edx, dword [edx + 0xf58]
mov eax, edx
mov ecx, dword [ebx + 0xf5c]
and eax, ecx
cmp eax, 0xffffffff
je 0x448a58
push ecx
push edx
push ebx
call fcn.0043ea60
add esp, 0xc
mov edx, ebx
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x10]
push 0
mov eax, dword [eax]
mov eax, dword [eax + 0xf90]
inc eax
push eax
push edx
call fcn.0041f1b0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x448e5b
mov ecx, dword [ebp - 0x8c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448a90
sub ecx, edx
mov edx, edi
lea eax, [edx + 1]
mov dword [ebp - 0x90], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x448aa4
sub edx, dword [ebp - 0x90]
mov eax, dword [esi + 0x154]
sub eax, edx
sub eax, 4
cmp ecx, eax
jbe 0x448afe
push str.TFTP_file_name_too_long_n
push dword [ebp - 0x88]
call fcn.00431d00
push dword [ebp - 0x8c]
call dword [0x59d48c]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
mov byte [eax + 1], 1
jmp 0x448a5a
mov eax, dword [esi + 0x160]
push 0
push edi
push 0
push dword [ebp - 0x8c]
add eax, 2
push str._s_c_s_c
push dword [esi + 0x154]
push eax
call fcn.00422ee0
mov ecx, dword [ebp - 0x8c]
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448b30
sub ecx, edx
lea edx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x448b40
add ecx, 4
sub edi, edx
add edi, ecx
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx + 0xa94]
test al, 8
jne 0x448d64
test eax, 0x20000000
je 0x448b95
mov edx, dword [ecx + 0xf58]
mov eax, edx
mov ecx, dword [ecx + 0xf5c]
and eax, ecx
cmp eax, 0xffffffff
je 0x448b95
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00422ee0
add esp, 0x14
jmp 0x448b9e
mov eax, 0x30
mov word [ebp - 0x44], ax
lea ebx, [edi + 6]
cmp ebx, dword [esi + 0x154]
jbe 0x448bb0
mov ebx, 0x47
jmp 0x448c22
mov ecx, dword [esi + 0x160]
mov edx, str.tsize
add ecx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x448bc0
lea ecx, [ebp - 0x44]
mov edi, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448bd6
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x448bf3
mov ebx, 0x47
jmp 0x448c22
mov ecx, dword [esi + 0x160]
lea edx, [ebp - 0x44]
add ecx, edi
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x448c00
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448c14
sub ecx, edx
inc edi
add edi, ecx
xor ebx, ebx
push dword [esi + 0x158]
lea eax, [ebp - 0x44]
push 0x4e8f40
push 0x40
push eax
call fcn.00422ee0
add esp, 0x10
test ebx, ebx
jne 0x448cc2
lea ebx, [edi + 8]
cmp ebx, dword [esi + 0x154]
jbe 0x448c55
mov ebx, 0x47
jmp 0x448cc2
mov ecx, dword [esi + 0x160]
mov edx, str.blksize
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x448c62
lea ecx, [ebp - 0x44]
mov edi, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448c78
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
jbe 0x448c95
mov ebx, 0x47
jmp 0x448cc2
mov ecx, dword [esi + 0x160]
lea edx, [ebp - 0x44]
add ecx, edi
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x448ca0
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448cb4
sub ecx, edx
inc edi
add edi, ecx
xor ebx, ebx
push dword [esi + 0x1c]
lea eax, [ebp - 0x44]
push 0x4e8f40
push 0x40
push eax
call fcn.00422ee0
add esp, 0x10
test ebx, ebx
jne 0x448dd4
lea ebx, [edi + 8]
cmp ebx, dword [esi + 0x154]
ja 0x448dd4
mov ecx, dword [esi + 0x160]
mov edx, str.timeout
add ecx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x448d00
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448d14
sub ecx, edx
lea eax, [ebx + 1]
add eax, ecx
cmp eax, dword [esi + 0x154]
ja 0x448dd4
mov ecx, dword [esi + 0x160]
lea edx, [ebp - 0x44]
add ecx, ebx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x448d40
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x448d54
sub ecx, edx
lea edi, [ebx + 1]
add edi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x50]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push edi
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x448db2
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00456fd0
push eax
push 0x4ed6ac
push dword [ebp - 0x88]
call fcn.00431d00
add esp, 0x18
push dword [ebp - 0x8c]
call dword [0x59d48c]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
push str.TFTP_buffer_too_small_for_options
push dword [ebp - 0x88]
call fcn.00431d00
push dword [ebp - 0x8c]
call dword [0x59d48c]
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
push 6
push esi
test eax, 0x20000000
je 0x448e2b
call fcn.00448170
mov ebx, eax
jmp 0x448e58
push 4
push esi
call fcn.00448170
mov ebx, eax
jmp 0x448e58
push 3
push esi
call fcn.00448130
mov ebx, eax
jmp 0x448e58
pop edi
mov dword [esi], 3
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push edx
call fcn.00431d00
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493440
mov esp, ebp
pop ebp
ret